From: Jingoo Han Date: Thu, 12 Sep 2013 06:31:06 +0000 (+0900) Subject: serial: mfd: remove unnecessary pci_set_drvdata() X-Git-Tag: upstream/snapshot3+hdmi~4060^2~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8bf876209a9828a456a9ac09ef6369a007dda2d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git serial: mfd: remove unnecessary pci_set_drvdata() 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/mfd.c b/drivers/tty/serial/mfd.c index a187cd4..503dcc7 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); }