diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2017-03-09 08:39:35 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-09 12:00:39 -0500 |
commit | 20e4e37e4a2f1bfd43bcc8c3e666e47665036cc3 (patch) | |
tree | ee44b53dc2ba907792c072c9d128f058e3ee915e | |
parent | 94a631d91ad341b3b4bdac72d1104d9f090e0ca9 (diff) |
usb: xhci: remove dummy extra_priv_size for size of xhci_hcd struct
because hcd_priv_size is already size of xhci_hcd struct,
extra_priv_size is not needed anymore for MTK and tegra drivers.
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/host/xhci-mtk.c | 1 | ||||
-rw-r--r-- | drivers/usb/host/xhci-tegra.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 6ac73a6b4da6..67d5dc79b6b5 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c | |||
@@ -382,7 +382,6 @@ static int usb_wakeup_of_property_parse(struct xhci_hcd_mtk *mtk, | |||
382 | 382 | ||
383 | static int xhci_mtk_setup(struct usb_hcd *hcd); | 383 | static int xhci_mtk_setup(struct usb_hcd *hcd); |
384 | static const struct xhci_driver_overrides xhci_mtk_overrides __initconst = { | 384 | static const struct xhci_driver_overrides xhci_mtk_overrides __initconst = { |
385 | .extra_priv_size = sizeof(struct xhci_hcd), | ||
386 | .reset = xhci_mtk_setup, | 385 | .reset = xhci_mtk_setup, |
387 | }; | 386 | }; |
388 | 387 | ||
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c index a59fafb4b329..74436f8ca538 100644 --- a/drivers/usb/host/xhci-tegra.c +++ b/drivers/usb/host/xhci-tegra.c | |||
@@ -1308,7 +1308,6 @@ static int tegra_xhci_setup(struct usb_hcd *hcd) | |||
1308 | } | 1308 | } |
1309 | 1309 | ||
1310 | static const struct xhci_driver_overrides tegra_xhci_overrides __initconst = { | 1310 | static const struct xhci_driver_overrides tegra_xhci_overrides __initconst = { |
1311 | .extra_priv_size = sizeof(struct xhci_hcd), | ||
1312 | .reset = tegra_xhci_setup, | 1311 | .reset = tegra_xhci_setup, |
1313 | }; | 1312 | }; |
1314 | 1313 | ||