Skip to contentSkip to conversation

serial: pch_uart: remove unnecessary pci_set_drvdata()

PATCH New Jingoo Han 1 participant 1 message Nov 25, 2013 TTY layer and serial drivers

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 serial: pch_uart: 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.

---
 drivers/tty/serial/pch_uart.c |    1 -
 1 file changed, 1 deletion(-)
drivers/tty/serial/pch_uart.c +0 -1
index 0aa2b52..11c862c 100644
@@ -1853,7 +1853,6 @@ static void pch_uart_exit_port(struct eg20t_port *priv)
 		debugfs_remove(priv->debugfs);
 #endif
 	uart_remove_one_port(&pch_uart_driver, &priv->port);
-	pci_set_drvdata(priv->pdev, NULL);
 	free_page((unsigned long)priv->rxbuf.buf);
 }
 
Signature · 1 line
1.7.10.4