Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b323bb49
Commit
b323bb49
authored
Jul 14, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fixed up pci slot_name accesses in usb code
parent
1cb035e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/usb/core/hcd-pci.c
drivers/usb/core/hcd-pci.c
+4
-4
No files found.
drivers/usb/core/hcd-pci.c
View file @
b323bb49
...
@@ -81,7 +81,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
...
@@ -81,7 +81,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
if
(
!
dev
->
irq
)
{
if
(
!
dev
->
irq
)
{
err
(
"Found HC with no IRQ. Check BIOS/PCI %s setup!"
,
err
(
"Found HC with no IRQ. Check BIOS/PCI %s setup!"
,
dev
->
slot_name
);
pci_name
(
dev
)
);
return
-
ENODEV
;
return
-
ENODEV
;
}
}
...
@@ -99,7 +99,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
...
@@ -99,7 +99,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
retval
=
-
EFAULT
;
retval
=
-
EFAULT
;
clean_1:
clean_1:
release_mem_region
(
resource
,
len
);
release_mem_region
(
resource
,
len
);
err
(
"init %s fail, %d"
,
dev
->
slot_name
,
retval
);
err
(
"init %s fail, %d"
,
pci_name
(
dev
)
,
retval
);
return
retval
;
return
retval
;
}
}
...
@@ -136,7 +136,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
...
@@ -136,7 +136,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
goto
clean_1
;
goto
clean_1
;
}
else
{
}
else
{
release_region
(
resource
,
len
);
release_region
(
resource
,
len
);
err
(
"init %s fail, %d"
,
dev
->
slot_name
,
retval
);
err
(
"init %s fail, %d"
,
pci_name
(
dev
)
,
retval
);
return
retval
;
return
retval
;
}
}
}
}
...
@@ -144,7 +144,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
...
@@ -144,7 +144,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
hcd
->
driver
=
driver
;
hcd
->
driver
=
driver
;
hcd
->
description
=
driver
->
description
;
hcd
->
description
=
driver
->
description
;
hcd
->
pdev
=
dev
;
hcd
->
pdev
=
dev
;
hcd
->
self
.
bus_name
=
dev
->
slot_name
;
hcd
->
self
.
bus_name
=
pci_name
(
dev
)
;
hcd
->
product_desc
=
dev
->
dev
.
name
;
hcd
->
product_desc
=
dev
->
dev
.
name
;
hcd
->
self
.
controller
=
&
dev
->
dev
;
hcd
->
self
.
controller
=
&
dev
->
dev
;
hcd
->
controller
=
hcd
->
self
.
controller
;
hcd
->
controller
=
hcd
->
self
.
controller
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment