USB: EHCI: ehci-mv: remove private_init
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 22 Aug 2018 20:43:00 +0000 (22:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 11:07:55 +0000 (13:07 +0200)
It's unused.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-mv.c
include/linux/platform_data/mv_usb.h

index 77a4ab1dcd0723792937a532e256e35ba271b495..705d1b43b2dda95135503eff03bcfc0db98000ed 100644 (file)
@@ -203,9 +203,6 @@ static int mv_ehci_probe(struct platform_device *pdev)
                device_wakeup_enable(hcd->self.controller);
        }
 
-       if (pdata->private_init)
-               pdata->private_init(ehci_mv->op_regs, ehci_mv->phy_regs);
-
        dev_info(&pdev->dev,
                 "successful find EHCI device with regs 0x%p irq %d"
                 " working in %s mode\n", hcd->regs, hcd->irq,
@@ -260,7 +257,6 @@ static const struct platform_device_id ehci_id_table[] = {
 static void mv_ehci_shutdown(struct platform_device *pdev)
 {
        struct usb_hcd *hcd = platform_get_drvdata(pdev);
-       struct ehci_hcd_mv *ehci_mv = hcd_to_ehci_hcd_mv(hcd);
 
        if (!hcd->rh_registered)
                return;
index 98b7925f1a2d851a0da538f19c5a5a28d62de682..c0f624aca81c599e065b4065b7c827da304fc45b 100644 (file)
@@ -48,6 +48,5 @@ struct mv_usb_platform_data {
        int     (*phy_init)(void __iomem *regbase);
        void    (*phy_deinit)(void __iomem *regbase);
        int     (*set_vbus)(unsigned int vbus);
-       int     (*private_init)(void __iomem *opregs, void __iomem *phyregs);
 };
 #endif