]> git.baikalelectronics.ru Git - kernel.git/commit
net: ks8851: Split out SPI specific code from probe() and remove()
authorMarek Vasut <marex@denx.de>
Thu, 28 May 2020 22:21:40 +0000 (00:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 23:30:04 +0000 (16:30 -0700)
commit4d27b5683fa1978dab60f109d1a7d3a3705f2a7a
tree14d62d7c335c8558e59c5bd551a848f05f2a6940
parentbe4b16ae9f46dc2c9b0a9dd66edfc03d949457c8
net: ks8851: Split out SPI specific code from probe() and remove()

Factor out common code into ks8851_probe_common() and
ks8851_remove_common() to permit both SPI and parallel
bus driver variants to use the common code path for
both probing and removal.

There should be 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