can: mcp251x: Convert to devm-* API
authorAlexander Shiyan <shc_work@mail.ru>
Sun, 15 Dec 2013 14:16:00 +0000 (18:16 +0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 17 Dec 2013 10:47:21 +0000 (11:47 +0100)
commit21629e1a118402566dce08f26edf19954fecef32
tree94a2acb43dabab9f92ff0197f14d4b54d6a23a42
parent05780d9808f72dc28a5c3602e11a7c53aef972ad
can: mcp251x: Convert to devm-* API

Replace existing resource handling in the driver with managed
device resource, this ensures more consistent error values and
simplifies error paths.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/mcp251x.c