]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: change the stmmac_dvr_probe return type to int
authorJoachim Eastwood <manabian@gmail.com>
Wed, 20 May 2015 18:03:08 +0000 (20:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 May 2015 22:57:26 +0000 (18:57 -0400)
commitadc7632d9dcae66b2da98bc02fcc28f74ac39040
tree0ff07d6c4575eec8635ec840c7861e50b851ab04
parent0394b299ff4478c38d5847bcf6987b43b1454723
stmmac: change the stmmac_dvr_probe return type to int

Since stmmac_dvr_probe takes care of setting driver data and
assign resources to the priv structure there is no need to
access the priv structure from the other probe functions.
This mean that this function can be changed into just return
an int and thus simplifying the callers.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c