linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] serial: mfd: remove unnecessary pci_set_drvdata()
@ 2013-09-12  6:31 Jingoo Han
  2013-09-12  6:33 ` [PATCH 2/3] serial: 8250_pci: " Jingoo Han
  2013-09-12  6:35 ` [PATCH 3/3] serial: txx9: " Jingoo Han
  0 siblings, 2 replies; 4+ messages in thread
From: Jingoo Han @ 2013-09-12  6:31 UTC (permalink / raw)
  To: 'Greg Kroah-Hartman'
  Cc: linux-serial, 'Jingoo Han', 'Feng Tang'

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/tty/serial/mfd.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/tty/serial/mfd.c b/drivers/tty/serial/mfd.c
index d3db042..ead43dd 100644
--- a/drivers/tty/serial/mfd.c
+++ b/drivers/tty/serial/mfd.c
@@ -1451,7 +1451,6 @@ static void serial_hsu_remove(struct pci_dev *pdev)
 		uart_remove_one_port(&serial_hsu_reg, &up->port);
 	}
 
-	pci_set_drvdata(pdev, NULL);
 	free_irq(pdev->irq, priv);
 	pci_disable_device(pdev);
 }
-- 
1.7.10.4



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

end of thread, other threads:[~2013-09-12 14:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-12  6:31 [PATCH 1/3] serial: mfd: remove unnecessary pci_set_drvdata() Jingoo Han
2013-09-12  6:33 ` [PATCH 2/3] serial: 8250_pci: " Jingoo Han
2013-09-12 14:47   ` Wang YanQing
2013-09-12  6:35 ` [PATCH 3/3] serial: txx9: " 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).