diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-15 20:29:34 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-16 09:43:02 +0200 |
commit | abe4560c8add1c58a944b36e8ea51b10968f4d7b (patch) | |
tree | 03976ccedc5bb0a92cbd1b8ded76ad00f9e2b072 /arch/arm/boards/edb93xx | |
parent | 158294a49aade9fde1000dd5403f40d0f15d64e3 (diff) | |
download | barebox-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/arm/boards/edb93xx')
-rw-r--r-- | arch/arm/boards/edb93xx/edb93xx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/boards/edb93xx/edb93xx.c b/arch/arm/boards/edb93xx/edb93xx.c index 70fd12c1bf..e1e8adcddb 100644 --- a/arch/arm/boards/edb93xx/edb93xx.c +++ b/arch/arm/boards/edb93xx/edb93xx.c @@ -72,7 +72,8 @@ static int ep93xx_devices_init(void) * Up to 32MiB NOR type flash, connected to * CS line 6, data width is 16 bit */ - add_generic_device("ep93xx_eth", -1, NULL, 0, 0, IORESOURCE_MEM, NULL); + add_generic_device("ep93xx_eth", DEVICE_ID_DYNAMIC, NULL, 0, 0, IORESOURCE_MEM, + NULL); armlinux_set_bootparams((void *)CONFIG_EP93XX_SDRAM_BANK0_BASE + 0x100); @@ -101,7 +102,7 @@ static int edb93xx_console_init(void) writel(0xAA, &syscon->sysswlock); writel(value, &syscon->devicecfg); - add_generic_device("pl010_serial", -1, NULL, UART1_BASE, 4096, + add_generic_device("pl010_serial", DEVICE_ID_DYNAMIC, NULL, UART1_BASE, 4096, IORESOURCE_MEM, NULL); return 0; |