mm: use pgdat_end_pfn() to simplify the code in others
[deliverable/linux.git] / drivers / leds / leds-pwm.c
index faf52c005e8c230ef255407294e3f44b6beb6b0b..2848171b8576f3475c63b0669c5a9788d11e6069 100644 (file)
@@ -147,7 +147,7 @@ err:
 
 static int led_pwm_probe(struct platform_device *pdev)
 {
-       struct led_pwm_platform_data *pdata = pdev->dev.platform_data;
+       struct led_pwm_platform_data *pdata = dev_get_platdata(&pdev->dev);
        struct led_pwm_priv *priv;
        int i, ret = 0;
 
@@ -232,7 +232,7 @@ static struct platform_driver led_pwm_driver = {
        .driver         = {
                .name   = "leds_pwm",
                .owner  = THIS_MODULE,
-               .of_match_table = of_match_ptr(of_pwm_leds_match),
+               .of_match_table = of_pwm_leds_match,
        },
 };
 
This page took 0.028571 seconds and 5 git commands to generate.