can: m_can: Move allocation of net device to probe
authorFaiz Abbas <faiz_abbas@ti.com>
Tue, 16 Jan 2018 11:37:12 +0000 (17:07 +0530)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 16 Jan 2018 14:11:33 +0000 (15:11 +0100)
commit5e520edd91f0cd52f8f9f855bc2c1558e85d30da
treeb7d0660465b3fe427f56e919925ec3d87a798449
parentb25abca6aa4fd2fcdafc214d489ccd57df67e88e
can: m_can: Move allocation of net device to probe

With the version no longer required to allocate the net device, it can
be moved to probe and the alloc_m_can_dev() function can be simplified.

Therefore, move the allocation of net device to probe and change
alloc_m_can_dev() to setup_m_can_dev().

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c