diff options
author | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2021-04-19 00:19:44 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-20 00:58:14 +0200 |
commit | af80425e05b23e937e4a3490442f37eedb5242f6 (patch) | |
tree | 161b3a014f5f64515d45ffb73dd06fc65a1b14de /arch/mips | |
parent | net: korina: Use DMA API (diff) | |
download | linux-af80425e05b23e937e4a3490442f37eedb5242f6.tar.xz linux-af80425e05b23e937e4a3490442f37eedb5242f6.zip |
net: korina: Only pass mac address via platform data
Get rid of access to struct korina_device by just passing the mac
address via platform data and use drvdata for passing netdev to remove
function.
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/rb532/devices.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c index dd34f1b32b79..5fc3c8ee4f31 100644 --- a/arch/mips/rb532/devices.c +++ b/arch/mips/rb532/devices.c @@ -105,6 +105,9 @@ static struct platform_device korina_dev0 = { .name = "korina", .resource = korina_dev0_res, .num_resources = ARRAY_SIZE(korina_dev0_res), + .dev = { + .platform_data = &korina_dev0_data.mac, + } }; static struct resource cf_slot0_res[] = { @@ -299,8 +302,6 @@ static int __init plat_setup_devices(void) /* set the uart clock to the current cpu frequency */ rb532_uart_res[0].uartclk = idt_cpu_freq; - dev_set_drvdata(&korina_dev0.dev, &korina_dev0_data); - gpiod_add_lookup_table(&cf_slot0_gpio_table); return platform_add_devices(rb532_devs, ARRAY_SIZE(rb532_devs)); } |