[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211015065615.2795190-1-u.kleine-koenig@pengutronix.de>
Date: Fri, 15 Oct 2021 08:56:13 +0200
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: "David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>
Cc: Andrew Lunn <andrew@...n.ch>, Arnd Bergmann <arnd@...db.de>,
Marek Vasut <marex@...x.de>, Mark Brown <broonie@...nel.org>,
Michael Walle <michael@...le.cc>,
Nathan Chancellor <nathan@...nel.org>,
Tom Rix <trix@...hat.com>,
Yang Yingliang <yangyingliang@...wei.com>,
Zheng Yongjun <zhengyongjun3@...wei.com>,
kernel@...gutronix.de, linux-spi@...r.kernel.org,
netdev@...r.kernel.org
Subject: [PATCH v2 0/2 net-next] Let spi drivers return 0 in .remove()
Hello,
this series is part of my quest to change the return type of the spi
driver .remove() callback to void. In this first stage I fix all drivers
to return 0 to be able to mechanically change all drivers in the final
step. Here the two spi drivers in net are fixed to obviously return 0.
Returning an error code (which actually very few drivers do) doesn't
make much sense, because the only effect is that the spi core emits an
error message.
The same holds try for platform drivers, one of them is fixed en passant.
There is no need to coordinate application of this series. There is
still much to do until struct spi_driver can be changed.
Changes since v1:
- Fix a compile error found by the kernel test robot, thanks!
Best regards
Uwe
Uwe Kleine-König (2):
net: ks8851: Make ks8851_remove_common() return void
net: w5100: Make w5100_remove() return void
drivers/net/ethernet/micrel/ks8851.h | 2 +-
drivers/net/ethernet/micrel/ks8851_common.c | 4 +---
drivers/net/ethernet/micrel/ks8851_par.c | 4 +++-
drivers/net/ethernet/micrel/ks8851_spi.c | 4 +++-
drivers/net/ethernet/wiznet/w5100-spi.c | 4 +++-
drivers/net/ethernet/wiznet/w5100.c | 7 ++++---
drivers/net/ethernet/wiznet/w5100.h | 2 +-
7 files changed, 16 insertions(+), 11 deletions(-)
base-commit: 9e1ff307c779ce1f0f810c7ecce3d95bbae40896
--
2.30.2
Powered by blists - more mailing lists