]> 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)
commit0719af69a18372b3314f7ec42fbb94466ab10165
treee82993c16f0aba3f0739ec8f3f4d90865ad30a9c
parent725532afccb872ee1a345e09a7540475426a3851
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