]> git.baikalelectronics.ru Git - kernel.git/commit
can: c_can_platform: Fix raminit, use devm_ioremap() instead of devm_ioremap_resource()
authorGeorge Cherian <george.cherian@ti.com>
Fri, 25 Jul 2014 06:19:41 +0000 (11:49 +0530)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 25 Jul 2014 07:23:08 +0000 (09:23 +0200)
commite04701c0a333d552f26b3bea9693f109ddb11e67
treec6afe9a118ea37be300b3957262d84dd272e40c2
parent6271e9b0a0b03e7f296f8049a9aee45f290d56d9
can: c_can_platform: Fix raminit, use devm_ioremap() instead of devm_ioremap_resource()

The raminit register is shared register for both can0 and can1. Since commit:

    abf8a64 net: can: Convert to use devm_ioremap_resource

devm_ioremap_resource() is used to map raminit register. When using both
interfaces the mapping for the can1 interface fails, leading to a non
functional can interface.

Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.11
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/c_can_platform.c