Commit a3aef379 authored by Heikki Krogerus's avatar Heikki Krogerus Committed by Greg Kroah-Hartman

xhci: get rid of platform data

No more users for it.
Signed-off-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 95b57df4
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/usb/phy.h> #include <linux/usb/phy.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/usb/xhci_pdriver.h>
#include <linux/acpi.h> #include <linux/acpi.h>
#include "xhci.h" #include "xhci.h"
...@@ -138,7 +137,6 @@ MODULE_DEVICE_TABLE(of, usb_xhci_of_match); ...@@ -138,7 +137,6 @@ MODULE_DEVICE_TABLE(of, usb_xhci_of_match);
static int xhci_plat_probe(struct platform_device *pdev) static int xhci_plat_probe(struct platform_device *pdev)
{ {
struct usb_xhci_pdata *pdata = dev_get_platdata(&pdev->dev);
const struct of_device_id *match; const struct of_device_id *match;
const struct hc_driver *driver; const struct hc_driver *driver;
struct xhci_hcd *xhci; struct xhci_hcd *xhci;
...@@ -222,8 +220,7 @@ static int xhci_plat_probe(struct platform_device *pdev) ...@@ -222,8 +220,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
goto disable_clk; goto disable_clk;
} }
if (device_property_read_bool(&pdev->dev, "usb3-lpm-capable") || if (device_property_read_bool(&pdev->dev, "usb3-lpm-capable"))
(pdata && pdata->usb3_lpm_capable))
xhci->quirks |= XHCI_LPM_SUPPORT; xhci->quirks |= XHCI_LPM_SUPPORT;
if (HCC_MAX_PSA(xhci->hcc_params) >= 4) if (HCC_MAX_PSA(xhci->hcc_params) >= 4)
......
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
*/
#ifndef __USB_CORE_XHCI_PDRIVER_H
#define __USB_CORE_XHCI_PDRIVER_H
/**
* struct usb_xhci_pdata - platform_data for generic xhci platform driver
*
* @usb3_lpm_capable: determines if this xhci platform supports USB3
* LPM capability
*
*/
struct usb_xhci_pdata {
unsigned usb3_lpm_capable:1;
};
#endif /* __USB_CORE_XHCI_PDRIVER_H */
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