* [PATCH] rb532: fix devices.c compilation
@ 2009-12-02 12:07 Florian Fainelli
2009-12-02 12:38 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2009-12-02 12:07 UTC (permalink / raw)
To: linux-mips; +Cc: ralf
We should now use dev_set_drvdata to set the driver
driver_data field.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c
index 9f40e1f..041fc1a 100644
--- a/arch/mips/rb532/devices.c
+++ b/arch/mips/rb532/devices.c
@@ -110,7 +110,6 @@ static struct korina_device korina_dev0_data = {
static struct platform_device korina_dev0 = {
.id = -1,
.name = "korina",
- .dev.driver_data = &korina_dev0_data,
.resource = 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 */
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));
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rb532: fix devices.c compilation
2009-12-02 12:07 [PATCH] rb532: fix devices.c compilation Florian Fainelli
@ 2009-12-02 12:38 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2009-12-02 12:38 UTC (permalink / raw)
To: Florian Fainelli; +Cc: linux-mips
On Wed, Dec 02, 2009 at 01:07:01PM +0100, Florian Fainelli wrote:
> We should now use dev_set_drvdata to set the driver
> driver_data field.
Thanks, applied.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-02 12:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-02 12:07 [PATCH] rb532: fix devices.c compilation Florian Fainelli
2009-12-02 12:38 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).