Commit 4e7c81af3fa076e2d1534cc665ea2f623e631f5d
Committed by
Ralf Baechle
1 parent
a91be9ee69
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
arch/mips/rb532/devices.c
... | ... | @@ -110,7 +110,6 @@ |
110 | 110 | static struct platform_device korina_dev0 = { |
111 | 111 | .id = -1, |
112 | 112 | .name = "korina", |
113 | - .dev.driver_data = &korina_dev0_data, | |
114 | 113 | .resource = korina_dev0_res, |
115 | 114 | .num_resources = ARRAY_SIZE(korina_dev0_res), |
116 | 115 | }; |
... | ... | @@ -331,6 +330,8 @@ |
331 | 330 | |
332 | 331 | /* set the uart clock to the current cpu frequency */ |
333 | 332 | rb532_uart_res[0].uartclk = idt_cpu_freq; |
333 | + | |
334 | + dev_set_drvdata(&korina_dev0.dev, &korina_dev0_data); | |
334 | 335 | |
335 | 336 | return platform_add_devices(rb532_devs, ARRAY_SIZE(rb532_devs)); |
336 | 337 | } |