Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (6 weeks ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/drivers/tty/serial/8250/8250_pci.c

    r31869 r31885  
    5757        void __iomem            *remapped_bar[PCI_NUM_BAR_RESOURCES];
    5858        struct pci_serial_quirk *quirk;
     59        const struct pciserial_board *board;
    5960        int                     line[0];
    6061};
     
    38693870        }
    38703871        priv->nr = i;
     3872        priv->board = board;
    38713873        return priv;
    38723874
     
    38793881EXPORT_SYMBOL_GPL(pciserial_init_ports);
    38803882
    3881 void pciserial_remove_ports(struct serial_private *priv)
     3883void pciserial_detach_ports(struct serial_private *priv)
    38823884{
    38833885        struct pci_serial_quirk *quirk;
     
    38993901        if (quirk->exit)
    39003902                quirk->exit(priv->dev);
    3901 
     3903}
     3904
     3905void pciserial_remove_ports(struct serial_private *priv)
     3906{
     3907        pciserial_detach_ports(priv);
    39023908        kfree(priv);
    39033909}
     
    55065512
    55075513        if (priv)
    5508                 pciserial_suspend_ports(priv);
     5514                pciserial_detach_ports(priv);
    55095515
    55105516        pci_disable_device(dev);
     
    55315537{
    55325538        struct serial_private *priv = pci_get_drvdata(dev);
    5533 
    5534         if (priv)
    5535                 pciserial_resume_ports(priv);
     5539        const struct pciserial_board *board;
     5540
     5541        if (!priv)
     5542                return;
     5543
     5544        board = priv->board;
     5545        kfree(priv);
     5546        priv = pciserial_init_ports(dev, board);
     5547
     5548        if (!IS_ERR(priv)) {
     5549                pci_set_drvdata(dev, priv);
     5550        }
    55365551}
    55375552
Note: See TracChangeset for help on using the changeset viewer.