MIPS: RB532: Fix devices.c compilation.
We should now use dev_set_drvdata to set the driver driver_data field. Signed-off-by: Florian Fainelli <florian@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/747/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
a91be9ee69
commit
4e7c81af3f
1 changed files with 2 additions and 1 deletions
|
@ -110,7 +110,6 @@ static struct korina_device korina_dev0_data = {
|
||||||
static struct platform_device korina_dev0 = {
|
static struct platform_device korina_dev0 = {
|
||||||
.id = -1,
|
.id = -1,
|
||||||
.name = "korina",
|
.name = "korina",
|
||||||
.dev.driver_data = &korina_dev0_data,
|
|
||||||
.resource = korina_dev0_res,
|
.resource = korina_dev0_res,
|
||||||
.num_resources = ARRAY_SIZE(korina_dev0_res),
|
.num_resources = ARRAY_SIZE(korina_dev0_res),
|
||||||
};
|
};
|
||||||
|
@ -332,6 +331,8 @@ static int __init plat_setup_devices(void)
|
||||||
/* set the uart clock to the current cpu frequency */
|
/* set the uart clock to the current cpu frequency */
|
||||||
rb532_uart_res[0].uartclk = idt_cpu_freq;
|
rb532_uart_res[0].uartclk = idt_cpu_freq;
|
||||||
|
|
||||||
|
dev_set_drvdata(&korina_dev0.dev, &korina_dev0_data);
|
||||||
|
|
||||||
return platform_add_devices(rb532_devs, ARRAY_SIZE(rb532_devs));
|
return platform_add_devices(rb532_devs, ARRAY_SIZE(rb532_devs));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue