]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
USB: EHCI: ehci-mv: use a unique bus name
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 9 Mar 2020 13:00:14 +0000 (14:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 08:49:29 +0000 (09:49 +0100)
In case there are multiple Marvell EHCI blocks in system, we need a
different bus name for each one. Otherwise debugfs gets mildly upset about
a directory name in usb/ehci:

  debugfs: Directory 'mv ehci' with parent 'ehci' already present!

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20200309130014.548168-2-lkundrak@v3.sk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-mv.c

index ddb668963955f47b1d7dfd7b56a720be99643133..1300c457d9ed679145abedc39250f677c794ae2d 100644 (file)
@@ -115,7 +115,7 @@ static int mv_ehci_probe(struct platform_device *pdev)
        if (usb_disabled())
                return -ENODEV;
 
-       hcd = usb_create_hcd(&ehci_platform_hc_driver, &pdev->dev, "mv ehci");
+       hcd = usb_create_hcd(&ehci_platform_hc_driver, &pdev->dev, dev_name(&pdev->dev));
        if (!hcd)
                return -ENOMEM;