Skip to content

Commit

Permalink
Revert "usb: host: xhci-plat: Create platform device for onboard hubs…
Browse files Browse the repository at this point in the history
… in probe()"

This reverts commit c950686 as the
patch series is causing build issues in linux-next at the moment.

Cc: Matthias Kaehlcke <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gregkh committed Jun 18, 2021
1 parent 8e4167f commit 70b8edf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion drivers/usb/host/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ config USB_XHCI_PCI_RENESAS
config USB_XHCI_PLATFORM
tristate "Generic xHCI driver for a platform device"
select USB_XHCI_RCAR if ARCH_RENESAS
depends on USB_ONBOARD_HUB || !USB_ONBOARD_HUB
help
Adds an xHCI host driver for a generic platform device, which
provides a memory space and an irq.
Expand Down
6 changes: 0 additions & 6 deletions drivers/usb/host/xhci-plat.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/usb/onboard_hub.h>
#include <linux/usb/phy.h>
#include <linux/slab.h>
#include <linux/acpi.h>
Expand Down Expand Up @@ -375,9 +374,6 @@ static int xhci_plat_probe(struct platform_device *pdev)
*/
pm_runtime_forbid(&pdev->dev);

INIT_LIST_HEAD(&xhci->onboard_hub_devs);
onboard_hub_create_pdevs(hcd->self.root_hub, &xhci->onboard_hub_devs);

return 0;


Expand Down Expand Up @@ -424,8 +420,6 @@ static int xhci_plat_remove(struct platform_device *dev)
usb_remove_hcd(hcd);
usb_put_hcd(shared_hcd);

onboard_hub_destroy_pdevs(&xhci->onboard_hub_devs);

clk_disable_unprepare(clk);
clk_disable_unprepare(reg_clk);
usb_put_hcd(hcd);
Expand Down
2 changes: 0 additions & 2 deletions drivers/usb/host/xhci.h
Original file line number Diff line number Diff line change
Expand Up @@ -1923,8 +1923,6 @@ struct xhci_hcd {
struct dentry *debugfs_slots;
struct list_head regset_list;

struct list_head onboard_hub_devs;

void *dbc;
/* platform-specific data -- must come last */
unsigned long priv[] __aligned(sizeof(s64));
Expand Down

0 comments on commit 70b8edf

Please sign in to comment.