summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/include/mach/devices-imx51.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-20 03:22:17 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-04 15:19:12 +0200
commit3c5327e660bc840deb82030062c91e469528dd94 (patch)
tree31f150802925bf3f292ac90cdcb4ae5eb3ddd97a /arch/arm/mach-imx/include/mach/devices-imx51.h
parentc0620a4b50c46d98c08229db4bec6b4e4a68b16b (diff)
downloadbarebox-3c5327e660bc840deb82030062c91e469528dd94.tar.gz
barebox-3c5327e660bc840deb82030062c91e469528dd94.tar.xz
switch all platform_bus device/driver registering to platform_driver/device_register
now register_driver and register_device are for bus only usage. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/mach-imx/include/mach/devices-imx51.h')
-rw-r--r--arch/arm/mach-imx/include/mach/devices-imx51.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/include/mach/devices-imx51.h b/arch/arm/mach-imx/include/mach/devices-imx51.h
index 3d7ff72315..4b35c96e21 100644
--- a/arch/arm/mach-imx/include/mach/devices-imx51.h
+++ b/arch/arm/mach-imx/include/mach/devices-imx51.h
@@ -84,7 +84,7 @@ static inline struct device_d *imx51_add_nand(struct imx_nand_platform_data *pda
dev->id = DEVICE_ID_DYNAMIC;
dev->platform_data = pdata;
- register_device(dev);
+ platform_device_register(dev);
return dev;
}