Skip to content

Commit

Permalink
MIPS: RB532: Fix devices.c compilation.
Browse files Browse the repository at this point in the history
We should now use dev_set_drvdata to set the driver driver_data field.

Signed-off-by: Florian Fainelli <[email protected]>
Patchwork: http://patchwork.linux-mips.org/patch/747/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
ffainelli authored and ralfbaechle committed Dec 2, 2009
1 parent a91be9e commit 4e7c81a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/mips/rb532/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
Expand Down Expand Up @@ -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));
}

Expand Down

0 comments on commit 4e7c81a

Please sign in to comment.