can: flexcan: Use devm_ioremap_resource()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 22 Jul 2013 15:41:39 +0000 (12:41 -0300)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 1 Aug 2013 10:36:19 +0000 (12:36 +0200)
commit933e4af4c590c63509ffadeb77fcd1d329ac9155
treecb0602e154baeddd235c0432bd56e13f1441f775
parent46b3a421903aa2a4bc9731ca4663cee3ea869dab
can: flexcan: Use devm_ioremap_resource()

Using devm_ioremap_resource() can make the code simpler and smaller.

Also, place alloc_candev() after of_match_device() to make error handling
easier.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c