]> git.baikalelectronics.ru Git - kernel.git/commit
net: ks8851: Factor out spi->dev in probe()/remove()
authorMarek Vasut <marex@denx.de>
Thu, 28 May 2020 22:21:28 +0000 (00:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 23:30:03 +0000 (16:30 -0700)
commit4e4ea3eb30bc2d458ea1d6eb44444d9e8532b23a
tree59626d8e9a5166189309a92bb859b07a7ada8211
parent57ce2c7894e80ac971c6dc95154af20129858ecb
net: ks8851: Factor out spi->dev in probe()/remove()

Pull out the spi->dev into one common place in the function instead of
having it repeated over and over again. This is done in preparation for
unifying ks8851 and ks8851-mll drivers. No functional change.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: David S. Miller <davem@davemloft.net>
Cc: Lukas Wunner <lukas@wunner.de>
Cc: Petr Stetiar <ynezz@true.cz>
Cc: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ks8851.c