]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Sep 2018 08:32:38 +0000 (10:32 +0200)
commit6bdfc65b5062d7aa9d2134cf67697a4a11f244cf
tree60fc507dfe2137dc7a71e78bafe4d982b24df6f7
parent1ba930714d12dfabb8153b7b7595683558106848
pwm: omap-dmtimer: Return -EPROBE_DEFER if no dmtimer platform data

commit 43725feb593127b16318b871e3a9bf89a96d66cb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pwm/pwm-omap-dmtimer.c