commit | 69da3f2ac528642acbd06ed14564ac1b9a918394 | [log] [tgz] |
---|---|---|
author | Stefan Agner <stefan@agner.ch> | Mon May 18 18:33:28 2015 +0200 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Thu Jul 16 09:04:22 2015 +0200 |
tree | b8d502e46fa867e830901f6f01cdadaaf0e6c05a | |
parent | 25b401c1816ae64bcc5dcb1d39ab41812522a0ce [diff] |
can: mcp251x: get regulators optionally The regulators power and transceiver are optional. If those are not present, the pointer (or error pointer) is correctly handled by the driver, hence we can use devm_regulator_get_optional safely, which avoids regulators getting created. Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>