OSDN Git Service

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)
commita4583c1deb1b6e574ec0f4095d5a44d7160353f1
tree506a81804a5dfdb883361877003baf253828ccf1
parent1d38ec4974143827631d44a6a2a4c069fc4c05bd
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