aboutsummaryrefslogtreecommitdiffstats
path: root/arch/unicore32
diff options
context:
space:
mode:
authorPawel Moll <pawel.moll@arm.com>2014-07-23 13:07:18 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-23 22:09:03 -0400
commitd2168146c222d607bf4baeaaaa990f39411d1567 (patch)
tree67ecdec367d9e7d13eda2bc4b2189453addf568e /arch/unicore32
parent90125edbc49ec58b9101c4271bb1d87b04a4620f (diff)
platform: Remove most references to platform_bus device
A number of board files in arch/arm and arch/unicore32 explicitly reference platform_bus device as a parent for new platform devices. This is unnecessary, as platform device API guarantees that devices with NULL parent are going to by adopted by the mentioned "root" device. This patch removes or replaces with NULL such references. Signed-off-by: Pawel Moll <pawel.moll@arm.com> Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/unicore32')
-rw-r--r--arch/unicore32/kernel/puv3-core.c2
-rw-r--r--arch/unicore32/kernel/puv3-nb0916.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/unicore32/kernel/puv3-core.c b/arch/unicore32/kernel/puv3-core.c
index 254adeecc61a..438dd2edba4f 100644
--- a/arch/unicore32/kernel/puv3-core.c
+++ b/arch/unicore32/kernel/puv3-core.c
@@ -272,7 +272,7 @@ void __init puv3_core_init(void)
272 platform_device_register_simple("PKUnity-v3-UART", 1, 272 platform_device_register_simple("PKUnity-v3-UART", 1,
273 puv3_uart1_resources, ARRAY_SIZE(puv3_uart1_resources)); 273 puv3_uart1_resources, ARRAY_SIZE(puv3_uart1_resources));
274 platform_device_register_simple("PKUnity-v3-AC97", -1, NULL, 0); 274 platform_device_register_simple("PKUnity-v3-AC97", -1, NULL, 0);
275 platform_device_register_resndata(&platform_bus, "musb_hdrc", -1, 275 platform_device_register_resndata(NULL, "musb_hdrc", -1,
276 puv3_usb_resources, ARRAY_SIZE(puv3_usb_resources), 276 puv3_usb_resources, ARRAY_SIZE(puv3_usb_resources),
277 &puv3_usb_plat, sizeof(puv3_usb_plat)); 277 &puv3_usb_plat, sizeof(puv3_usb_plat));
278} 278}
diff --git a/arch/unicore32/kernel/puv3-nb0916.c b/arch/unicore32/kernel/puv3-nb0916.c
index 0c6618e71897..46ebfdccbc31 100644
--- a/arch/unicore32/kernel/puv3-nb0916.c
+++ b/arch/unicore32/kernel/puv3-nb0916.c
@@ -112,13 +112,13 @@ int __init mach_nb0916_init(void)
112 platform_device_register_simple("PKUnity-v3-I2C", -1, 112 platform_device_register_simple("PKUnity-v3-I2C", -1,
113 puv3_i2c_resources, ARRAY_SIZE(puv3_i2c_resources)); 113 puv3_i2c_resources, ARRAY_SIZE(puv3_i2c_resources));
114 114
115 platform_device_register_data(&platform_bus, "pwm-backlight", -1, 115 platform_device_register_data(NULL, "pwm-backlight", -1,
116 &nb0916_backlight_data, sizeof(nb0916_backlight_data)); 116 &nb0916_backlight_data, sizeof(nb0916_backlight_data));
117 117
118 platform_device_register_data(&platform_bus, "gpio-keys", -1, 118 platform_device_register_data(NULL, "gpio-keys", -1,
119 &nb0916_gpio_button_data, sizeof(nb0916_gpio_button_data)); 119 &nb0916_gpio_button_data, sizeof(nb0916_gpio_button_data));
120 120
121 platform_device_register_resndata(&platform_bus, "physmap-flash", -1, 121 platform_device_register_resndata(NULL, "physmap-flash", -1,
122 &physmap_flash_resource, 1, 122 &physmap_flash_resource, 1,
123 &physmap_flash_data, sizeof(physmap_flash_data)); 123 &physmap_flash_data, sizeof(physmap_flash_data));
124 124