* [PATCH] net: dm9051: Make remove() callback a void function
@ 2022-02-28 17:39 Mark Brown
2022-02-28 17:39 ` Mark Brown
0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2022-02-28 17:39 UTC (permalink / raw)
To: David S . Miller, Jakub Kicinski, Yang Li, Joseph CHAMG
Cc: netdev, Stephen Rothwell, Mark Brown
From: Stephen Rothwell <sfr@canb.auug.org.au>
Changes introduced since the merge window in the spi subsystem and
available at:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-remove-void
make the remove() callback for spi return void rather than int, breaking
the newly added dm9051 driver fail to build. This patch fixes this
issue, converting the remove() function provided by the driver to return
void.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
[Rewrote commit message -- broonie]
Signed-off-by: Mark Brown <broonie@kernel.org>
---
drivers/net/ethernet/davicom/dm9051.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/davicom/dm9051.c b/drivers/net/ethernet/davicom/dm9051.c
index b4b5c9c2a743..8ebcb35bbc0e 100644
--- a/drivers/net/ethernet/davicom/dm9051.c
+++ b/drivers/net/ethernet/davicom/dm9051.c
@@ -1225,15 +1225,13 @@ static int dm9051_probe(struct spi_device *spi)
return 0;
}
-static int dm9051_drv_remove(struct spi_device *spi)
+static void dm9051_drv_remove(struct spi_device *spi)
{
struct device *dev = &spi->dev;
struct net_device *ndev = dev_get_drvdata(dev);
struct board_info *db = to_dm9051_board(ndev);
phy_disconnect(db->phydev);
-
- return 0;
}
static const struct of_device_id dm9051_match_table[] = {
--
2.30.2
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH] net: dm9051: Make remove() callback a void function
2022-02-28 17:39 [PATCH] net: dm9051: Make remove() callback a void function Mark Brown
@ 2022-02-28 17:39 ` Mark Brown
2022-02-28 19:49 ` Jakub Kicinski
2022-02-28 19:50 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 5+ messages in thread
From: Mark Brown @ 2022-02-28 17:39 UTC (permalink / raw)
To: David S . Miller, Jakub Kicinski, Yang Li, Joseph CHAMG
Cc: netdev, Stephen Rothwell, Mark Brown
From: Stephen Rothwell <sfr@canb.auug.org.au>
Changes introduced since the merge window in the spi subsystem and
available at:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-remove-void
make the remove() callback for spi return void rather than int, breaking
the newly added dm9051 driver fail to build. This patch fixes this
issue, converting the remove() function provided by the driver to return
void.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
[Rewrote commit message -- broonie]
Signed-off-by: Mark Brown <broonie@kernel.org>
---
drivers/net/ethernet/davicom/dm9051.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/davicom/dm9051.c b/drivers/net/ethernet/davicom/dm9051.c
index b4b5c9c2a743..8ebcb35bbc0e 100644
--- a/drivers/net/ethernet/davicom/dm9051.c
+++ b/drivers/net/ethernet/davicom/dm9051.c
@@ -1225,15 +1225,13 @@ static int dm9051_probe(struct spi_device *spi)
return 0;
}
-static int dm9051_drv_remove(struct spi_device *spi)
+static void dm9051_drv_remove(struct spi_device *spi)
{
struct device *dev = &spi->dev;
struct net_device *ndev = dev_get_drvdata(dev);
struct board_info *db = to_dm9051_board(ndev);
phy_disconnect(db->phydev);
-
- return 0;
}
static const struct of_device_id dm9051_match_table[] = {
--
2.30.2
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] net: dm9051: Make remove() callback a void function
2022-02-28 17:39 ` Mark Brown
@ 2022-02-28 19:49 ` Jakub Kicinski
2022-02-28 21:26 ` Stephen Rothwell
2022-02-28 19:50 ` patchwork-bot+netdevbpf
1 sibling, 1 reply; 5+ messages in thread
From: Jakub Kicinski @ 2022-02-28 19:49 UTC (permalink / raw)
To: Mark Brown
Cc: David S . Miller, Yang Li, Joseph CHAMG, netdev, Stephen Rothwell
On Mon, 28 Feb 2022 17:39:57 +0000 Mark Brown wrote:
> From: Stephen Rothwell <sfr@canb.auug.org.au>
>
> Changes introduced since the merge window in the spi subsystem and
> available at:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-remove-void
>
> make the remove() callback for spi return void rather than int, breaking
> the newly added dm9051 driver fail to build. This patch fixes this
> issue, converting the remove() function provided by the driver to return
> void.
>
> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> [Rewrote commit message -- broonie]
> Signed-off-by: Mark Brown <broonie@kernel.org>
Pulled & applied, thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: dm9051: Make remove() callback a void function
2022-02-28 19:49 ` Jakub Kicinski
@ 2022-02-28 21:26 ` Stephen Rothwell
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Rothwell @ 2022-02-28 21:26 UTC (permalink / raw)
To: Jakub Kicinski
Cc: Mark Brown, David S . Miller, Yang Li, Joseph CHAMG, netdev
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
Hi Jakub,
On Mon, 28 Feb 2022 11:49:13 -0800 Jakub Kicinski <kuba@kernel.org> wrote:
>
> On Mon, 28 Feb 2022 17:39:57 +0000 Mark Brown wrote:
> > From: Stephen Rothwell <sfr@canb.auug.org.au>
> >
> > Changes introduced since the merge window in the spi subsystem and
> > available at:
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-remove-void
> >
> > make the remove() callback for spi return void rather than int, breaking
> > the newly added dm9051 driver fail to build. This patch fixes this
> > issue, converting the remove() function provided by the driver to return
> > void.
> >
> > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > [Rewrote commit message -- broonie]
> > Signed-off-by: Mark Brown <broonie@kernel.org>
>
> Pulled & applied, thanks!
For future reference, that patch of mine should have been applied as
part of the merge commit that brought in the topic branch.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: dm9051: Make remove() callback a void function
2022-02-28 17:39 ` Mark Brown
2022-02-28 19:49 ` Jakub Kicinski
@ 2022-02-28 19:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 5+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-02-28 19:50 UTC (permalink / raw)
To: Mark Brown; +Cc: davem, kuba, yang.lee, josright123, netdev, sfr
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 28 Feb 2022 17:39:57 +0000 you wrote:
> From: Stephen Rothwell <sfr@canb.auug.org.au>
>
> Changes introduced since the merge window in the spi subsystem and
> available at:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-remove-void
>
> [...]
Here is the summary with links:
- net: dm9051: Make remove() callback a void function
https://git.kernel.org/netdev/net-next/c/0b9e69e1a1e4
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-02-28 21:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-28 17:39 [PATCH] net: dm9051: Make remove() callback a void function Mark Brown
2022-02-28 17:39 ` Mark Brown
2022-02-28 19:49 ` Jakub Kicinski
2022-02-28 21:26 ` Stephen Rothwell
2022-02-28 19:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox