]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
at91ether: return PTR_ERR if call to clk_get fails
authorDevendra Naga <devendra.aaru@gmail.com>
Wed, 19 Sep 2012 21:04:36 +0000 (21:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2012 02:21:40 +0000 (22:21 -0400)
commit3cfc1590107a155218c97df0db3eb0a2bd7fda16
tree6e71c5fd0b8f06b085ab1bc77ee252b3abc9dcd9
parente3ac104d41a97b42316915020ba228c505447d21
at91ether: return PTR_ERR if call to clk_get fails

we are currently returning ENODEV, as the clk_get may give a exact
error code in its returned pointer, assign it to the ret by using the
PTR_ERR function, so that the subsequent goto label will jump to the
error path and clean the driver and return the error correctly.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/at91_ether.c