diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/clocksource/timer-ti-dm.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/clocksource/timer-ti-dm.c')
| -rw-r--r-- | drivers/clocksource/timer-ti-dm.c | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c index b24b903a8822..349236a7ba5f 100644 --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -1104,13 +1104,13 @@ static int omap_dm_timer_probe(struct platform_device *pdev)  	platform_set_drvdata(pdev, timer);  	if (dev->of_node) { -		if (of_find_property(dev->of_node, "ti,timer-alwon", NULL)) +		if (of_property_read_bool(dev->of_node, "ti,timer-alwon"))  			timer->capability |= OMAP_TIMER_ALWON; -		if (of_find_property(dev->of_node, "ti,timer-dsp", NULL)) +		if (of_property_read_bool(dev->of_node, "ti,timer-dsp"))  			timer->capability |= OMAP_TIMER_HAS_DSP_IRQ; -		if (of_find_property(dev->of_node, "ti,timer-pwm", NULL)) +		if (of_property_read_bool(dev->of_node, "ti,timer-pwm"))  			timer->capability |= OMAP_TIMER_HAS_PWM; -		if (of_find_property(dev->of_node, "ti,timer-secure", NULL)) +		if (of_property_read_bool(dev->of_node, "ti,timer-secure"))  			timer->capability |= OMAP_TIMER_SECURE;  	} else {  		timer->id = pdev->id; @@ -1177,7 +1177,7 @@ err_disable:   * In addition to freeing platform resources it also deletes the timer   * entry from the local list.   */ -static int omap_dm_timer_remove(struct platform_device *pdev) +static void omap_dm_timer_remove(struct platform_device *pdev)  {  	struct dmtimer *timer;  	unsigned long flags; @@ -1197,7 +1197,8 @@ static int omap_dm_timer_remove(struct platform_device *pdev)  	pm_runtime_disable(&pdev->dev); -	return ret; +	if (ret) +		dev_err(&pdev->dev, "Unable to determine timer entry in list of drivers on remove\n");  }  static const struct omap_dm_timer_ops dmtimer_ops = { @@ -1272,7 +1273,7 @@ MODULE_DEVICE_TABLE(of, omap_timer_match);  static struct platform_driver omap_dm_timer_driver = {  	.probe  = omap_dm_timer_probe, -	.remove = omap_dm_timer_remove, +	.remove_new = omap_dm_timer_remove,  	.driver = {  		.name   = "omap_timer",  		.of_match_table = omap_timer_match, @@ -1283,5 +1284,4 @@ static struct platform_driver omap_dm_timer_driver = {  module_platform_driver(omap_dm_timer_driver);  MODULE_DESCRIPTION("OMAP Dual-Mode Timer Driver"); -MODULE_LICENSE("GPL");  MODULE_AUTHOR("Texas Instruments Inc");  |