Loading drivers/pwm/pwm-atmel.c +2 −9 Original line number Original line Diff line number Diff line Loading @@ -337,15 +337,8 @@ atmel_pwm_get_driver_data(struct platform_device *pdev) { { const struct platform_device_id *id; const struct platform_device_id *id; if (pdev->dev.of_node) { if (pdev->dev.of_node) const struct of_device_id *match; return of_device_get_match_data(&pdev->dev); match = of_match_device(atmel_pwm_dt_ids, &pdev->dev); if (!match) return NULL; return match->data; } id = platform_get_device_id(pdev); id = platform_get_device_id(pdev); Loading Loading
drivers/pwm/pwm-atmel.c +2 −9 Original line number Original line Diff line number Diff line Loading @@ -337,15 +337,8 @@ atmel_pwm_get_driver_data(struct platform_device *pdev) { { const struct platform_device_id *id; const struct platform_device_id *id; if (pdev->dev.of_node) { if (pdev->dev.of_node) const struct of_device_id *match; return of_device_get_match_data(&pdev->dev); match = of_match_device(atmel_pwm_dt_ids, &pdev->dev); if (!match) return NULL; return match->data; } id = platform_get_device_id(pdev); id = platform_get_device_id(pdev); Loading