Input: spear-keyboard - remove kbd_set_plat_data()
authorViresh Kumar <viresh.kumar@st.com>
Tue, 20 Mar 2012 00:46:58 +0000 (17:46 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 20 Mar 2012 00:55:39 +0000 (17:55 -0700)
We must use platform_device_add_data() instead of kbd_set_plat_data() so
let's remove it.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
arch/arm/plat-spear/include/plat/keyboard.h

index c16cc31..0562f13 100644 (file)
@@ -159,11 +159,4 @@ struct kbd_platform_data {
        unsigned int mode;
 };
 
-/* This function is used to set platform data field of pdev->dev */
-static inline void
-kbd_set_plat_data(struct platform_device *pdev, struct kbd_platform_data *data)
-{
-       pdev->dev.platform_data = data;
-}
-
 #endif /* __PLAT_KEYBOARD_H */