public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] mfd: lpc_ich: remove unnecessary pci_set_drvdata()
@ 2013-09-12  6:41 Jingoo Han
  2013-09-12  6:43 ` [PATCH 2/3] mfd: sm501: " Jingoo Han
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jingoo Han @ 2013-09-12  6:41 UTC (permalink / raw)
  To: Samuel Ortiz, Lee Jones
  Cc: linux-kernel, 'Jingoo Han', 'Peter Tyser'

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/mfd/lpc_ich.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/mfd/lpc_ich.c b/drivers/mfd/lpc_ich.c
index 9483bc8..316af07 100644
--- a/drivers/mfd/lpc_ich.c
+++ b/drivers/mfd/lpc_ich.c
@@ -969,7 +969,6 @@ static int lpc_ich_probe(struct pci_dev *dev,
 	if (!cell_added) {
 		dev_warn(&dev->dev, "No MFD cells added\n");
 		lpc_ich_restore_config_space(dev);
-		pci_set_drvdata(dev, NULL);
 		return -ENODEV;
 	}
 
@@ -980,7 +979,6 @@ static void lpc_ich_remove(struct pci_dev *dev)
 {
 	mfd_remove_devices(&dev->dev);
 	lpc_ich_restore_config_space(dev);
-	pci_set_drvdata(dev, NULL);
 }
 
 static struct pci_driver lpc_ich_driver = {
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-09-13  7:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-12  6:41 [PATCH 1/3] mfd: lpc_ich: remove unnecessary pci_set_drvdata() Jingoo Han
2013-09-12  6:43 ` [PATCH 2/3] mfd: sm501: " Jingoo Han
2013-09-12 15:11   ` Lee Jones
2013-09-12  6:44 ` [PATCH 3/3] mfd: timberdale: " Jingoo Han
2013-09-12 15:10   ` Lee Jones
2013-09-13  2:23   ` [PATCH V2] " Jingoo Han
2013-09-13  7:07     ` Lee Jones
2013-09-12 15:09 ` [PATCH 1/3] mfd: lpc_ich: " Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox