* [PATCH 1/7] net: hippi: remove unnecessary pci_set_drvdata()
@ 2013-12-10 3:48 Jingoo Han
2013-12-10 3:49 ` [PATCH 2/7] net: fddi: " Jingoo Han
` (6 more replies)
0 siblings, 7 replies; 11+ messages in thread
From: Jingoo Han @ 2013-12-10 3:48 UTC (permalink / raw)
To: 'David S. Miller'
Cc: netdev, linux-hippi, 'Jes Sorensen', 'Jingoo Han'
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/hippi/rrunner.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/net/hippi/rrunner.c b/drivers/net/hippi/rrunner.c
index 00ed751..cd85f24 100644
--- a/drivers/net/hippi/rrunner.c
+++ b/drivers/net/hippi/rrunner.c
@@ -213,10 +213,8 @@ static int rr_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
rrpriv->tx_ring_dma);
if (rrpriv->regs)
pci_iounmap(pdev, rrpriv->regs);
- if (pdev) {
+ if (pdev)
pci_release_regions(pdev);
- pci_set_drvdata(pdev, NULL);
- }
out2:
free_netdev(dev);
out3:
@@ -244,7 +242,6 @@ static void rr_remove_one(struct pci_dev *pdev)
pci_iounmap(pdev, rr->regs);
pci_release_regions(pdev);
pci_disable_device(pdev);
- pci_set_drvdata(pdev, NULL);
free_netdev(dev);
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/7] net: fddi: remove unnecessary pci_set_drvdata()
2013-12-10 3:48 [PATCH 1/7] net: hippi: remove unnecessary pci_set_drvdata() Jingoo Han
@ 2013-12-10 3:49 ` Jingoo Han
2013-12-10 3:50 ` [PATCH 3/7] net: vmxnet3: " Jingoo Han
` (5 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Jingoo Han @ 2013-12-10 3:49 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/fddi/skfp/skfddi.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/fddi/skfp/skfddi.c b/drivers/net/fddi/skfp/skfddi.c
index 713d303..d5f5812 100644
--- a/drivers/net/fddi/skfp/skfddi.c
+++ b/drivers/net/fddi/skfp/skfddi.c
@@ -351,7 +351,6 @@ static void skfp_remove_one(struct pci_dev *pdev)
free_netdev(p);
pci_disable_device(pdev);
- pci_set_drvdata(pdev, NULL);
}
/*
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/7] net: vmxnet3: remove unnecessary pci_set_drvdata()
2013-12-10 3:48 [PATCH 1/7] net: hippi: remove unnecessary pci_set_drvdata() Jingoo Han
2013-12-10 3:49 ` [PATCH 2/7] net: fddi: " Jingoo Han
@ 2013-12-10 3:50 ` Jingoo Han
2013-12-10 4:37 ` Shreyas Bhatewara
2013-12-10 3:50 ` [PATCH 4/7] net: phy: spi_ks8995: remove unnecessary spi_set_drvdata() Jingoo Han
` (4 subsequent siblings)
6 siblings, 1 reply; 11+ messages in thread
From: Jingoo Han @ 2013-12-10 3:50 UTC (permalink / raw)
To: 'David S. Miller'
Cc: netdev, 'Shreyas Bhatewara', pv-drivers,
'Jingoo Han', 'Andy King',
'Aditya Sarwade', 'George Zhang'
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/vmxnet3/vmxnet3_drv.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c
index 7e2788c..a300a18 100644
--- a/drivers/net/vmxnet3/vmxnet3_drv.c
+++ b/drivers/net/vmxnet3/vmxnet3_drv.c
@@ -3132,7 +3132,6 @@ err_alloc_queue_desc:
err_alloc_shared:
dma_unmap_single(&adapter->pdev->dev, adapter->adapter_pa,
sizeof(struct vmxnet3_adapter), PCI_DMA_TODEVICE);
- pci_set_drvdata(pdev, NULL);
free_netdev(netdev);
return err;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/7] net: phy: spi_ks8995: remove unnecessary spi_set_drvdata()
2013-12-10 3:48 [PATCH 1/7] net: hippi: remove unnecessary pci_set_drvdata() Jingoo Han
2013-12-10 3:49 ` [PATCH 2/7] net: fddi: " Jingoo Han
2013-12-10 3:50 ` [PATCH 3/7] net: vmxnet3: " Jingoo Han
@ 2013-12-10 3:50 ` Jingoo Han
2013-12-10 3:51 ` [PATCH 5/7] net: ieee802154: " Jingoo Han
` (3 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Jingoo Han @ 2013-12-10 3:50 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/phy/spi_ks8995.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c
index f3bea13..98fb9f3 100644
--- a/drivers/net/phy/spi_ks8995.c
+++ b/drivers/net/phy/spi_ks8995.c
@@ -325,7 +325,6 @@ static int ks8995_probe(struct spi_device *spi)
return 0;
err_drvdata:
- spi_set_drvdata(spi, NULL);
kfree(ks);
return err;
}
@@ -337,7 +336,6 @@ static int ks8995_remove(struct spi_device *spi)
ks8995 = spi_get_drvdata(spi);
sysfs_remove_bin_file(&spi->dev.kobj, &ks8995_registers_attr);
- spi_set_drvdata(spi, NULL);
kfree(ks8995);
return 0;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 5/7] net: ieee802154: remove unnecessary spi_set_drvdata()
2013-12-10 3:48 [PATCH 1/7] net: hippi: remove unnecessary pci_set_drvdata() Jingoo Han
` (2 preceding siblings ...)
2013-12-10 3:50 ` [PATCH 4/7] net: phy: spi_ks8995: remove unnecessary spi_set_drvdata() Jingoo Han
@ 2013-12-10 3:51 ` Jingoo Han
2013-12-10 3:51 ` [PATCH 6/7] atm: he: remove unnecessary pci_set_drvdata() Jingoo Han
` (2 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Jingoo Han @ 2013-12-10 3:51 UTC (permalink / raw)
To: 'David S. Miller'
Cc: netdev, linux-zigbee-devel, 'Alexander Smirnov',
'Dmitry Eremin-Solenikov', 'Jingoo Han',
'Sascha Herrmann', 'Stefan Schmidt',
'Alan Ott'
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ieee802154/at86rf230.c | 2 --
drivers/net/ieee802154/mrf24j40.c | 1 -
2 files changed, 3 deletions(-)
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index 2cbe1c2..ab31544 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -987,7 +987,6 @@ err_gpio_dir:
err_slp_tr:
gpio_free(lp->rstn);
err_rstn:
- spi_set_drvdata(spi, NULL);
mutex_destroy(&lp->bmux);
ieee802154_free_device(lp->dev);
return rc;
@@ -1006,7 +1005,6 @@ static int at86rf230_remove(struct spi_device *spi)
gpio_free(lp->slp_tr);
gpio_free(lp->rstn);
- spi_set_drvdata(spi, NULL);
mutex_destroy(&lp->bmux);
ieee802154_free_device(lp->dev);
diff --git a/drivers/net/ieee802154/mrf24j40.c b/drivers/net/ieee802154/mrf24j40.c
index c6e46d6..246befa 100644
--- a/drivers/net/ieee802154/mrf24j40.c
+++ b/drivers/net/ieee802154/mrf24j40.c
@@ -715,7 +715,6 @@ static int mrf24j40_remove(struct spi_device *spi)
* complete? */
/* Clean up the SPI stuff. */
- spi_set_drvdata(spi, NULL);
kfree(devrec->buf);
kfree(devrec);
return 0;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 6/7] atm: he: remove unnecessary pci_set_drvdata()
2013-12-10 3:48 [PATCH 1/7] net: hippi: remove unnecessary pci_set_drvdata() Jingoo Han
` (3 preceding siblings ...)
2013-12-10 3:51 ` [PATCH 5/7] net: ieee802154: " Jingoo Han
@ 2013-12-10 3:51 ` Jingoo Han
2013-12-10 3:52 ` [PATCH 7/7] atm: solos-pci: " Jingoo Han
2013-12-11 3:32 ` [PATCH 1/7] net: hippi: " David Miller
6 siblings, 0 replies; 11+ messages in thread
From: Jingoo Han @ 2013-12-10 3:51 UTC (permalink / raw)
To: 'David S. Miller'
Cc: 'Chas Williams', netdev, linux-atm-general,
'Jingoo Han'
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/atm/he.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/atm/he.c b/drivers/atm/he.c
index 8557adc..aa6be26 100644
--- a/drivers/atm/he.c
+++ b/drivers/atm/he.c
@@ -419,7 +419,6 @@ static void he_remove_one(struct pci_dev *pci_dev)
atm_dev_deregister(atm_dev);
kfree(he_dev);
- pci_set_drvdata(pci_dev, NULL);
pci_disable_device(pci_dev);
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 7/7] atm: solos-pci: remove unnecessary pci_set_drvdata()
2013-12-10 3:48 [PATCH 1/7] net: hippi: remove unnecessary pci_set_drvdata() Jingoo Han
` (4 preceding siblings ...)
2013-12-10 3:51 ` [PATCH 6/7] atm: he: remove unnecessary pci_set_drvdata() Jingoo Han
@ 2013-12-10 3:52 ` Jingoo Han
2013-12-11 3:32 ` [PATCH 1/7] net: hippi: " David Miller
6 siblings, 0 replies; 11+ messages in thread
From: Jingoo Han @ 2013-12-10 3:52 UTC (permalink / raw)
To: 'David S. Miller'
Cc: 'Chas Williams', netdev, linux-atm-general,
'Jingoo Han', 'Nathan Williams',
'David Woodhouse'
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/atm/solos-pci.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c
index 32784d1..e3fb496 100644
--- a/drivers/atm/solos-pci.c
+++ b/drivers/atm/solos-pci.c
@@ -1335,7 +1335,6 @@ static int fpga_probe(struct pci_dev *dev, const struct pci_device_id *id)
out_unmap_both:
kfree(card->dma_bounce);
- pci_set_drvdata(dev, NULL);
pci_iounmap(dev, card->buffers);
out_unmap_config:
pci_iounmap(dev, card->config_regs);
@@ -1457,7 +1456,6 @@ static void fpga_remove(struct pci_dev *dev)
pci_release_regions(dev);
pci_disable_device(dev);
- pci_set_drvdata(dev, NULL);
kfree(card);
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 3/7] net: vmxnet3: remove unnecessary pci_set_drvdata()
2013-12-10 3:50 ` [PATCH 3/7] net: vmxnet3: " Jingoo Han
@ 2013-12-10 4:37 ` Shreyas Bhatewara
2013-12-10 4:53 ` Jingoo Han
0 siblings, 1 reply; 11+ messages in thread
From: Shreyas Bhatewara @ 2013-12-10 4:37 UTC (permalink / raw)
To: Jingoo Han
Cc: David S. Miller, netdev, pv-drivers, Andy King, Aditya Sarwade,
George Zhang
> The driver core clears the driver data to NULL after device_release
> or on probe failure. Thus, it is not needed to manually clear the
> device driver data to NULL.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Shreyas N Bhatewara <sbhatewara@vmware.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 3/7] net: vmxnet3: remove unnecessary pci_set_drvdata()
2013-12-10 4:37 ` Shreyas Bhatewara
@ 2013-12-10 4:53 ` Jingoo Han
0 siblings, 0 replies; 11+ messages in thread
From: Jingoo Han @ 2013-12-10 4:53 UTC (permalink / raw)
To: 'Shreyas Bhatewara'
Cc: 'David S. Miller', netdev, pv-drivers,
'Andy King', 'Aditya Sarwade',
'George Zhang', 'Dmitry Torokhov',
'Jingoo Han'
On Tuesday, December 10, 2013 1:37 PM, Shreyas Bhatewara wrote:
> On Monday, November 25, 2013 11:05:23 AM Jingoo Han wrote:
> > The driver core clears the driver data to NULL after device_release
> > or on probe failure. Thus, it is not needed to manually clear the
> > device driver data to NULL.
> >
> > Signed-off-by: Jingoo Han <jg1.han@samsung.com>
>
> Signed-off-by: Shreyas N Bhatewara <sbhatewara@vmware.com>
(+cc Dmitry Torokhov)
Hi Shreyas Bhatewara,
It may be 'Acked-by' instead of 'Signed-off-by', right?
Also, I missed 'Acked-by' from Dmitry Torokhov.
Acked-by: Dmitry Torokhov <dtor@vmware.com>
So, Dmitry Torokhov's 'Acked-by' should be added,
when this commit is merged.
Thank you for your feedback. :-)
Best regards,
Jingoo Han
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/7] net: hippi: remove unnecessary pci_set_drvdata()
2013-12-10 3:48 [PATCH 1/7] net: hippi: remove unnecessary pci_set_drvdata() Jingoo Han
` (5 preceding siblings ...)
2013-12-10 3:52 ` [PATCH 7/7] atm: solos-pci: " Jingoo Han
@ 2013-12-11 3:32 ` David Miller
2013-12-11 3:35 ` Jingoo Han
6 siblings, 1 reply; 11+ messages in thread
From: David Miller @ 2013-12-11 3:32 UTC (permalink / raw)
To: jg1.han; +Cc: netdev, linux-hippi, jes
All 7 patches applied, thanks.
Please post future patch series with a proper "[PATCH 0/N] " cover email
so that I can apply to just that one to let you know I've applied the
other series.
If you don't provide a cover letter I'm left with only two very
undesirable options. Either I reply to every patch, which is
unnecessary noise, or I reply to just the first patch which people
might miss.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/7] net: hippi: remove unnecessary pci_set_drvdata()
2013-12-11 3:32 ` [PATCH 1/7] net: hippi: " David Miller
@ 2013-12-11 3:35 ` Jingoo Han
0 siblings, 0 replies; 11+ messages in thread
From: Jingoo Han @ 2013-12-11 3:35 UTC (permalink / raw)
To: 'David Miller'; +Cc: netdev, linux-hippi, jes, 'Jingoo Han'
On Wednesday, December 11, 2013 12:33 PM, David Miller wrote:
>
> All 7 patches applied, thanks.
>
> Please post future patch series with a proper "[PATCH 0/N] " cover email
> so that I can apply to just that one to let you know I've applied the
> other series.
>
> If you don't provide a cover letter I'm left with only two very
> undesirable options. Either I reply to every patch, which is
> unnecessary noise, or I reply to just the first patch which people
> might miss.
OK, I see.
Thank you for your guidance.
Best regards,
Jingoo Han
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-12-11 3:35 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-10 3:48 [PATCH 1/7] net: hippi: remove unnecessary pci_set_drvdata() Jingoo Han
2013-12-10 3:49 ` [PATCH 2/7] net: fddi: " Jingoo Han
2013-12-10 3:50 ` [PATCH 3/7] net: vmxnet3: " Jingoo Han
2013-12-10 4:37 ` Shreyas Bhatewara
2013-12-10 4:53 ` Jingoo Han
2013-12-10 3:50 ` [PATCH 4/7] net: phy: spi_ks8995: remove unnecessary spi_set_drvdata() Jingoo Han
2013-12-10 3:51 ` [PATCH 5/7] net: ieee802154: " Jingoo Han
2013-12-10 3:51 ` [PATCH 6/7] atm: he: remove unnecessary pci_set_drvdata() Jingoo Han
2013-12-10 3:52 ` [PATCH 7/7] atm: solos-pci: " Jingoo Han
2013-12-11 3:32 ` [PATCH 1/7] net: hippi: " David Miller
2013-12-11 3:35 ` Jingoo Han
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).