pwm: omap-dmtimer: Return -EPROBE_DEFER if no dmtimer platform data
authorDavid Rivshin <DRivshin@allworx.com>
Wed, 1 Aug 2018 14:17:29 +0000 (10:17 -0400)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 20 Aug 2018 09:32:19 +0000 (11:32 +0200)
commit43725feb593127b16318b871e3a9bf89a96d66cb
treef7144bb47d67ebb3c3914c59c60cf6a6364f2bc2
parent19ad2b75c6436eb7a5233a68cca13ceb17041ec8
pwm: omap-dmtimer: Return -EPROBE_DEFER if no dmtimer platform data

If a pwm-omap-dmtimer is probed before the dmtimer it uses, the platform
data won't be set yet.

Fixes: ac30751df953 ("ARM: OMAP: pdata-quirks: Remove unused timer pdata")
Cc: <stable@vger.kernel.org> # 4.17+
Signed-off-by: David Rivshin <drivshin@allworx.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Tested-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Ladislav Michl <ladis@linux-mips.org>
Tested-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-omap-dmtimer.c