summaryrefslogtreecommitdiffstats
path: root/arch/nios2
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/nios2
parentc0620a4b50c46d98c08229db4bec6b4e4a68b16b (diff)
downloadbarebox-3c5327e660bc840deb82030062c91e469528dd94.tar.gz
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/nios2')
-rw-r--r--arch/nios2/boards/generic/generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/boards/generic/generic.c b/arch/nios2/boards/generic/generic.c
index cdaaa02..66eb856 100644
--- a/arch/nios2/boards/generic/generic.c
+++ b/arch/nios2/boards/generic/generic.c
@@ -37,7 +37,7 @@ static int generic_devices_init(void)
add_cfi_flash_device(DEVICE_ID_DYNAMIC, NIOS_SOPC_FLASH_BASE, NIOS_SOPC_FLASH_SIZE, 0);
add_mem_device("ram0", NIOS_SOPC_MEMORY_BASE, NIOS_SOPC_MEMORY_SIZE,
IORESOURCE_MEM_WRITEABLE);
- register_device(&mac_dev);
+ platform_device_register(&mac_dev);
/*register_device(&epcs_flash_device);*/
devfs_add_partition("nor0", 0x00000, 0x40000, DEVFS_PARTITION_FIXED, "self0");