]> git.baikalelectronics.ru Git - kernel.git/commit
can: mscan: mpc5xxx_can: mpc5xxx_can_probe(): use of_device_get_match_data to simplif...
authorTang Bin <tangbin@cmss.chinamobile.com>
Mon, 23 Aug 2021 11:33:38 +0000 (19:33 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 25 Aug 2021 06:25:11 +0000 (08:25 +0200)
commit76150e7708d5719a7b59586df3cb784d431543e8
tree506a81804a5dfdb883361877003baf253828ccf1
parent14d782713f656a3277ac58b307029dc30bd959a3
can: mscan: mpc5xxx_can: mpc5xxx_can_probe(): use of_device_get_match_data to simplify code

Retrieve OF match data, it's better and cleaner to use
'of_device_get_match_data' over 'of_match_device'.

Link: https://lore.kernel.org/r/20210823113338.3568-4-tangbin@cmss.chinamobile.com
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/mscan/mpc5xxx_can.c