Commit 8f3c0618 authored by Russell King's avatar Russell King

[SERIAL] Fix oops when removing some PCI serial boards

Patch from William Lee Irwin II.
parent cbf98efd
...@@ -768,7 +768,8 @@ static void __devexit pci_remove_one(struct pci_dev *dev) ...@@ -768,7 +768,8 @@ static void __devexit pci_remove_one(struct pci_dev *dev)
for (i = 0; i < priv->nr; i++) for (i = 0; i < priv->nr; i++)
unregister_serial(priv->line[i]); unregister_serial(priv->line[i]);
priv->board->init_fn(dev, priv->board, 0); if (priv->board->init_fn)
priv->board->init_fn(dev, priv->board, 0);
pci_disable_device(dev); pci_disable_device(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment