diff options
author | Lee Jones <lee.jones@linaro.org> | 2012-02-06 14:22:26 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-02-13 01:31:53 -0500 |
commit | 3510ec672319e09fe43bd623b19fcf539c0bd1fa (patch) | |
tree | 4c45a1f0d9791c7f9b7427f55df232473dd3ecf9 /arch/arm/mach-ux500/devices-db8500.h | |
parent | b024a0c804356d90b13c072c8bbb444d9e745a66 (diff) |
ARM: ux500: remove intermediary add_platform_device* functions
These are no longer required since a 'parent' pointer is now
passed to each registering device.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-ux500/devices-db8500.h')
-rw-r--r-- | arch/arm/mach-ux500/devices-db8500.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/mach-ux500/devices-db8500.h b/arch/arm/mach-ux500/devices-db8500.h index 9bd08ad70042..9fd93e9da529 100644 --- a/arch/arm/mach-ux500/devices-db8500.h +++ b/arch/arm/mach-ux500/devices-db8500.h | |||
@@ -18,9 +18,13 @@ db8500_add_ske_keypad(struct device *parent, | |||
18 | struct ske_keypad_platform_data *pdata, | 18 | struct ske_keypad_platform_data *pdata, |
19 | size_t size) | 19 | size_t size) |
20 | { | 20 | { |
21 | return dbx500_add_platform_device_4k1irq("nmk-ske-keypad", -1, | 21 | struct resource resources[] = { |
22 | U8500_SKE_BASE, | 22 | DEFINE_RES_MEM(U8500_SKE_BASE, SZ_4K), |
23 | IRQ_DB8500_KB, pdata); | 23 | DEFINE_RES_IRQ(IRQ_DB8500_KB), |
24 | }; | ||
25 | |||
26 | return platform_device_register_resndata(parent, "nmk-ske-keypad", -1, | ||
27 | resources, 2, pdata, size); | ||
24 | } | 28 | } |
25 | 29 | ||
26 | static inline struct amba_device * | 30 | static inline struct amba_device * |