pwm: dwc: simplify error handling
authorRaag Jadav <raag.jadav@intel.com>
Mon, 19 Feb 2024 03:38:35 +0000 (09:08 +0530)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 26 Feb 2024 10:14:46 +0000 (11:14 +0100)
commit9e3440d2d57b459cd12c5a4d15e95a1181568e4f
tree7ca5ffbe54636722ea27c16b9312f08da15df906
parentebf2c89eb95ec9598da19184632b765de72a7db4
pwm: dwc: simplify error handling

Simplify error handling in ->probe() function using dev_err_probe() helper
and while at it, drop error codes from the message to prevent duplication.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Link: https://lore.kernel.org/r/20240219033835.11369-5-raag.jadav@intel.com
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/pwm/pwm-dwc.c