aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-sunfire.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/leds-sunfire.c')
-rw-r--r--drivers/leds/leds-sunfire.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/leds/leds-sunfire.c b/drivers/leds/leds-sunfire.c
index 89792990088d..388632d23d44 100644
--- a/drivers/leds/leds-sunfire.c
+++ b/drivers/leds/leds-sunfire.c
@@ -159,14 +159,14 @@ static int sunfire_led_generic_probe(struct platform_device *pdev,
159 } 159 }
160 } 160 }
161 161
162 dev_set_drvdata(&pdev->dev, p); 162 platform_set_drvdata(pdev, p);
163 163
164 return 0; 164 return 0;
165} 165}
166 166
167static int sunfire_led_generic_remove(struct platform_device *pdev) 167static int sunfire_led_generic_remove(struct platform_device *pdev)
168{ 168{
169 struct sunfire_drvdata *p = dev_get_drvdata(&pdev->dev); 169 struct sunfire_drvdata *p = platform_get_drvdata(pdev);
170 int i; 170 int i;
171 171
172 for (i = 0; i < NUM_LEDS_PER_BOARD; i++) 172 for (i = 0; i < NUM_LEDS_PER_BOARD; i++)