mac68k: move macsonic and macmace platform devices
Move platform device code from the drivers to the platform init function. Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
committed by
Geert Uytterhoeven
parent
cff75f1fb1
commit
eeb9c182a6
@@ -921,6 +921,16 @@ static struct platform_device esp_1_pdev = {
|
||||
.id = 1,
|
||||
};
|
||||
|
||||
static struct platform_device sonic_pdev = {
|
||||
.name = "macsonic",
|
||||
.id = -1,
|
||||
};
|
||||
|
||||
static struct platform_device mace_pdev = {
|
||||
.name = "macmace",
|
||||
.id = -1,
|
||||
};
|
||||
|
||||
int __init mac_platform_init(void)
|
||||
{
|
||||
u8 *swim_base;
|
||||
@@ -971,6 +981,19 @@ int __init mac_platform_init(void)
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
* Ethernet device
|
||||
*/
|
||||
|
||||
switch (macintosh_config->ether_type) {
|
||||
case MAC_ETHER_SONIC:
|
||||
platform_device_register(&sonic_pdev);
|
||||
break;
|
||||
case MAC_ETHER_MACE:
|
||||
platform_device_register(&mace_pdev);
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user