Loading drivers/pwm/pwm-ep93xx.c +1 −3 Original line number Diff line number Diff line Loading @@ -169,15 +169,13 @@ static const struct pwm_ops ep93xx_pwm_ops = { static int ep93xx_pwm_probe(struct platform_device *pdev) { struct ep93xx_pwm *ep93xx_pwm; struct resource *res; int ret; ep93xx_pwm = devm_kzalloc(&pdev->dev, sizeof(*ep93xx_pwm), GFP_KERNEL); if (!ep93xx_pwm) return -ENOMEM; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); ep93xx_pwm->base = devm_ioremap_resource(&pdev->dev, res); ep93xx_pwm->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ep93xx_pwm->base)) return PTR_ERR(ep93xx_pwm->base); Loading Loading
drivers/pwm/pwm-ep93xx.c +1 −3 Original line number Diff line number Diff line Loading @@ -169,15 +169,13 @@ static const struct pwm_ops ep93xx_pwm_ops = { static int ep93xx_pwm_probe(struct platform_device *pdev) { struct ep93xx_pwm *ep93xx_pwm; struct resource *res; int ret; ep93xx_pwm = devm_kzalloc(&pdev->dev, sizeof(*ep93xx_pwm), GFP_KERNEL); if (!ep93xx_pwm) return -ENOMEM; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); ep93xx_pwm->base = devm_ioremap_resource(&pdev->dev, res); ep93xx_pwm->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(ep93xx_pwm->base)) return PTR_ERR(ep93xx_pwm->base); Loading