aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/leds/leds-88pm860x.c2
-rw-r--r--drivers/leds/leds-sunfire.c4
-rw-r--r--drivers/leds/leds-wm831x-status.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/leds/leds-88pm860x.c b/drivers/leds/leds-88pm860x.c
index f5b9ea315790..232b3ce902e5 100644
--- a/drivers/leds/leds-88pm860x.c
+++ b/drivers/leds/leds-88pm860x.c
@@ -204,7 +204,7 @@ static int pm860x_led_probe(struct platform_device *pdev)
204 sprintf(data->name, "led1-blue"); 204 sprintf(data->name, "led1-blue");
205 break; 205 break;
206 } 206 }
207 dev_set_drvdata(&pdev->dev, data); 207 platform_set_drvdata(pdev, data);
208 data->chip = chip; 208 data->chip = chip;
209 data->i2c = (chip->id == CHIP_PM8606) ? chip->client : chip->companion; 209 data->i2c = (chip->id == CHIP_PM8606) ? chip->client : chip->companion;
210 data->port = pdev->id; 210 data->port = pdev->id;
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++)
diff --git a/drivers/leds/leds-wm831x-status.c b/drivers/leds/leds-wm831x-status.c
index 6bd5c679d877..120815a42701 100644
--- a/drivers/leds/leds-wm831x-status.c
+++ b/drivers/leds/leds-wm831x-status.c
@@ -241,7 +241,7 @@ static int wm831x_status_probe(struct platform_device *pdev)
241 GFP_KERNEL); 241 GFP_KERNEL);
242 if (!drvdata) 242 if (!drvdata)
243 return -ENOMEM; 243 return -ENOMEM;
244 dev_set_drvdata(&pdev->dev, drvdata); 244 platform_set_drvdata(pdev, drvdata);
245 245
246 drvdata->wm831x = wm831x; 246 drvdata->wm831x = wm831x;
247 drvdata->reg = res->start; 247 drvdata->reg = res->start;