summaryrefslogtreecommitdiffstats
path: root/arch/ppc/boards
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-04-15 20:29:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-04-16 09:43:02 +0200
commitabe4560c8add1c58a944b36e8ea51b10968f4d7b (patch)
tree03976ccedc5bb0a92cbd1b8ded76ad00f9e2b072 /arch/ppc/boards
parent158294a49aade9fde1000dd5403f40d0f15d64e3 (diff)
downloadbarebox-abe4560c8add1c58a944b36e8ea51b10968f4d7b.tar.gz
barebox-abe4560c8add1c58a944b36e8ea51b10968f4d7b.tar.xz
Use DEVICE_ID_DYNAMIC where applicable
We now have DEVICE_ID_DYNAMIC for dynamic allocation of device ids, Use it where applicable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/boards')
-rw-r--r--arch/ppc/boards/pcm030/pcm030.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/ppc/boards/pcm030/pcm030.c b/arch/ppc/boards/pcm030/pcm030.c
index 80f1cbe7fa..36e80a10eb 100644
--- a/arch/ppc/boards/pcm030/pcm030.c
+++ b/arch/ppc/boards/pcm030/pcm030.c
@@ -53,9 +53,9 @@ static int devices_init (void)
* what we find later.
*/
mpc5200_setup_cs(MPC5200_BOOTCS, 0xfe000000, SZ_32M, 0x0008fd00);
- add_cfi_flash_device(-1, 0xfe000000, 32 * 1024 * 1024, 0);
+ add_cfi_flash_device(DEVICE_ID_DYNAMIC, 0xfe000000, 32 * 1024 * 1024, 0);
- add_generic_device("fec_mpc5xxx", -1, NULL, MPC5XXX_FEC, 0x200,
+ add_generic_device("fec_mpc5xxx", DEVICE_ID_DYNAMIC, NULL, MPC5XXX_FEC, 0x200,
IORESOURCE_MEM, &fec_info);
ret = stat("/dev/nor0", &s);
@@ -72,9 +72,9 @@ device_initcall(devices_init);
static int console_init(void)
{
- add_generic_device("mpc5xxx_serial", -1, NULL, MPC5XXX_PSC3, 0x200,
+ add_generic_device("mpc5xxx_serial", DEVICE_ID_DYNAMIC, NULL, MPC5XXX_PSC3, 0x200,
IORESOURCE_MEM, NULL);
- add_generic_device("mpc5xxx_serial", -1, NULL, MPC5XXX_PSC6, 0x200,
+ add_generic_device("mpc5xxx_serial", DEVICE_ID_DYNAMIC, NULL, MPC5XXX_PSC6, 0x200,
IORESOURCE_MEM, NULL);
return 0;
}