Browse Source

MIPS: RB532: Use driver_data instead of platform_data

As the korina ethernet driver uses platform_get_drvdata() to extract the
driver specific data from the platform device, driver_data has to be
used here.

Signed-off-by: Phil Sutter <n0-1@freewrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Phil Sutter 16 years ago
parent
commit
94d2cc1b8b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/mips/rb532/devices.c

+ 1 - 1
arch/mips/rb532/devices.c

@@ -89,7 +89,7 @@ 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.platform_data = &korina_dev0_data,
+	.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),
 };
 };