]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: mediatek: Drop the check for of_device_get_match_data()
authorSam Shih <sam.shih@mediatek.com>
Thu, 19 Sep 2019 22:49:02 +0000 (06:49 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Sat, 21 Sep 2019 01:25:11 +0000 (03:25 +0200)
commite417773f9c88d48c38bc8c33314f05fac1539c88
treee82993c16f0aba3f0739ec8f3f4d90865ad30a9c
parentdd4eee36b091a6a3f25cbd1b88841e03b0a9afd2
pwm: mediatek: Drop the check for of_device_get_match_data()

This patch drop the check for of_device_get_match_data. Due to the only
way call driver probe is compatible match. The data pointer which points
to the SoC specify data is directly set by driver, and it should not be
NULL in our case. We can safety remove the check for the result of
of_device_get_match_data().

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Sam Shih <sam.shih@mediatek.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-mediatek.c