aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/mach-mx27ads.c
diff options
context:
space:
mode:
authorPawel Moll <pawel.moll@arm.com>2014-07-23 18:07:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-23 19:09:03 -0700
commitd2168146c222d607bf4baeaaaa990f39411d1567 (patch)
tree67ecdec367d9e7d13eda2bc4b2189453addf568e /arch/arm/mach-imx/mach-mx27ads.c
parentMerge 3.16-rc6 into driver-core-next (diff)
downloadlinux-dev-d2168146c222d607bf4baeaaaa990f39411d1567.tar.xz
linux-dev-d2168146c222d607bf4baeaaaa990f39411d1567.zip
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/arm/mach-imx/mach-mx27ads.c')
-rw-r--r--arch/arm/mach-imx/mach-mx27ads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mach-mx27ads.c b/arch/arm/mach-imx/mach-mx27ads.c
index 2f834ce8f39c..eb1c3477c48a 100644
--- a/arch/arm/mach-imx/mach-mx27ads.c
+++ b/arch/arm/mach-imx/mach-mx27ads.c
@@ -245,7 +245,7 @@ static void __init mx27ads_regulator_init(void)
vchip->set = vgpio_set;
gpiochip_add(vchip);
- platform_device_register_data(&platform_bus, "reg-fixed-voltage",
+ platform_device_register_data(NULL, "reg-fixed-voltage",
PLATFORM_DEVID_AUTO,
&mx27ads_lcd_regulator_pdata,
sizeof(mx27ads_lcd_regulator_pdata));