]> Git Repo - linux.git/blobdiff - drivers/pwm/pwm-rcar.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[linux.git] / drivers / pwm / pwm-rcar.c
index 91d11f2e2fefd2897a693199bc8c904faf165003..748f614d53755daabdd9f1529d7ba9cd602cb611 100644 (file)
@@ -261,8 +261,7 @@ MODULE_DEVICE_TABLE(of, rcar_pwm_of_table);
 #ifdef CONFIG_PM_SLEEP
 static struct pwm_device *rcar_pwm_dev_to_pwm_dev(struct device *dev)
 {
-       struct platform_device *pdev = to_platform_device(dev);
-       struct rcar_pwm_chip *rcar_pwm = platform_get_drvdata(pdev);
+       struct rcar_pwm_chip *rcar_pwm = dev_get_drvdata(dev);
        struct pwm_chip *chip = &rcar_pwm->chip;
 
        return &chip->pwms[0];
This page took 0.034915 seconds and 4 git commands to generate.