Skip to content

Commit 6866ac9

Browse files
Sachin Santgregkh
authored andcommitted
USB: FHCI: use dev_name() in place of bus_id.
Replace references to bus_id with dev_name() to fix fhci driver build break. drivers/usb/host/fhci-hcd.c:586: error: struct device has no member named bus_id drivers/usb/host/fhci-hcd.c:653: error: struct device has no member named bus_id drivers/usb/host/fhci-dbg.c:111: error: struct device has no member named bus_id Signed-off-by: Sachin Sant <[email protected]> Acked-by: Anton Vorontsov <[email protected]> Cc: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 54ca541 commit 6866ac9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/usb/host/fhci-dbg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void fhci_dfs_create(struct fhci_hcd *fhci)
108108
{
109109
struct device *dev = fhci_to_hcd(fhci)->self.controller;
110110

111-
fhci->dfs_root = debugfs_create_dir(dev->bus_id, NULL);
111+
fhci->dfs_root = debugfs_create_dir(dev_name(dev), NULL);
112112
if (!fhci->dfs_root) {
113113
WARN_ON(1);
114114
return;

drivers/usb/host/fhci-hcd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ static int __devinit of_fhci_probe(struct of_device *ofdev,
583583
if (sprop && strcmp(sprop, "host"))
584584
return -ENODEV;
585585

586-
hcd = usb_create_hcd(&fhci_driver, dev, dev->bus_id);
586+
hcd = usb_create_hcd(&fhci_driver, dev, dev_name(dev));
587587
if (!hcd) {
588588
dev_err(dev, "could not create hcd\n");
589589
return -ENOMEM;
@@ -650,7 +650,7 @@ static int __devinit of_fhci_probe(struct of_device *ofdev,
650650
}
651651
}
652652

653-
ret = gpio_request(gpio, dev->bus_id);
653+
ret = gpio_request(gpio, dev_name(dev));
654654
if (ret) {
655655
dev_err(dev, "failed to request gpio %d", i);
656656
goto err_gpios;

0 commit comments

Comments
 (0)