Commit e81dee55 authored by Heikki Krogerus's avatar Heikki Krogerus Committed by Greg Kroah-Hartman
Browse files

usb: dwc2: pci: Drop the empty quirk function



The function dwc2_pci_quirks() does nothing. Removing.

Signed-off-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Minas Harutyunyan <hminas@synopsys.com>
Link: https://lore.kernel.org/r/20210204141711.53775-3-heikki.krogerus@linux.intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2a1673f0
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -63,20 +63,6 @@ struct dwc2_pci_glue {
	struct platform_device *phy;
};

static int dwc2_pci_quirks(struct pci_dev *pdev, struct platform_device *dwc2)
{
	if (pdev->vendor == PCI_VENDOR_ID_SYNOPSYS &&
	    pdev->device == PCI_PRODUCT_ID_HAPS_HSOTG) {
		struct property_entry properties[] = {
			{ },
		};

		return platform_device_add_properties(dwc2, properties);
	}

	return 0;
}

/**
 * dwc2_pci_probe() - Provides the cleanup entry points for the DWC_otg PCI
 * driver
@@ -143,10 +129,6 @@ static int dwc2_pci_probe(struct pci_dev *pci,

	dwc2->dev.parent = dev;

	ret = dwc2_pci_quirks(pci, dwc2);
	if (ret)
		goto err;

	glue = devm_kzalloc(dev, sizeof(*glue), GFP_KERNEL);
	if (!glue) {
		ret = -ENOMEM;