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)
commite6c7c258f035ffec9d8a808c1bc34b6a5beae0ef
treee82993c16f0aba3f0739ec8f3f4d90865ad30a9c
parent9193c16e5a9899e742a862a0fec9bb5235008370
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