OSDN Git Service

soc: mediatek: use of_device_get_match_data()
authorRyder Lee <ryder.lee@mediatek.com>
Mon, 16 Apr 2018 02:33:34 +0000 (10:33 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 17 Apr 2018 14:36:44 +0000 (16:36 +0200)
commit38d19752a7807392e4517a14c21e7cf1cdddbd2d
tree1748da688413daca80c1d354a97f187b3d252949
parent60cc43fc888428bb2f18f08997432d426a243338
soc: mediatek: use of_device_get_match_data()

The usage of of_device_get_match_data() reduce the code size a bit.

Also, the only way to call pwrap_probe() is to match an entry in
of_pwrap_match_tbl[], so of_id cannot be NULL.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-pmic-wrap.c
drivers/soc/mediatek/mtk-scpsys.c