Commit ae185f19 authored by Sergei Shtylyov's avatar Sergei Shtylyov Committed by Marc Kleine-Budde

can: rcar_can: print request_irq() error code

Also print the error code when the request_irq() call fails in rcar_can_open(),
rewording  the error message...
Signed-off-by: default avatarSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 3255f68c
...@@ -527,7 +527,8 @@ static int rcar_can_open(struct net_device *ndev) ...@@ -527,7 +527,8 @@ static int rcar_can_open(struct net_device *ndev)
napi_enable(&priv->napi); napi_enable(&priv->napi);
err = request_irq(ndev->irq, rcar_can_interrupt, 0, ndev->name, ndev); err = request_irq(ndev->irq, rcar_can_interrupt, 0, ndev->name, ndev);
if (err) { if (err) {
netdev_err(ndev, "error requesting interrupt %d\n", ndev->irq); netdev_err(ndev, "request_irq(%d) failed, error %d\n",
ndev->irq, err);
goto out_close; goto out_close;
} }
can_led_event(ndev, CAN_LED_EVENT_OPEN); can_led_event(ndev, CAN_LED_EVENT_OPEN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment