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
Kirill Smelkov
linux
Commits
dc2cc667
Commit
dc2cc667
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 gadget code
parent
b323bb49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
drivers/usb/gadget/net2280.c
drivers/usb/gadget/net2280.c
+3
-3
drivers/usb/gadget/net2280.h
drivers/usb/gadget/net2280.h
+1
-1
No files found.
drivers/usb/gadget/net2280.c
View file @
dc2cc667
...
...
@@ -2496,7 +2496,7 @@ static void net2280_remove (struct pci_dev *pdev)
device_remove_file
(
&
pdev
->
dev
,
&
dev_attr_registers
);
pci_set_drvdata
(
pdev
,
0
);
INFO
(
dev
,
"unbind from pci %s
\n
"
,
p
dev
->
slot_name
);
INFO
(
dev
,
"unbind from pci %s
\n
"
,
p
ci_name
(
pdev
)
);
kfree
(
dev
);
the_controller
=
0
;
...
...
@@ -2518,7 +2518,7 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id)
* usb_gadget_driver_{register,unregister}() must change.
*/
if
(
the_controller
)
{
WARN
(
the_controller
,
"ignoring %s
\n
"
,
p
dev
->
slot_name
);
WARN
(
the_controller
,
"ignoring %s
\n
"
,
p
ci_name
(
pdev
)
);
return
-
EBUSY
;
}
...
...
@@ -2534,7 +2534,7 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id)
dev
->
pdev
=
pdev
;
dev
->
gadget
.
ops
=
&
net2280_ops
;
strcpy
(
dev
->
gadget
.
dev
.
bus_id
,
p
dev
->
slot_name
);
strcpy
(
dev
->
gadget
.
dev
.
bus_id
,
p
ci_name
(
pdev
)
);
strcpy
(
dev
->
gadget
.
dev
.
name
,
pdev
->
dev
.
name
);
dev
->
gadget
.
dev
.
parent
=
&
pdev
->
dev
;
dev
->
gadget
.
dev
.
dma_mask
=
pdev
->
dev
.
dma_mask
;
...
...
drivers/usb/gadget/net2280.h
View file @
dc2cc667
...
...
@@ -654,7 +654,7 @@ static inline void net2280_led_shutdown (struct net2280 *dev)
#define xprintk(dev,level,fmt,args...) \
printk(level "%s %s: " fmt , driver_name , \
dev->pdev->slot_name
, ## args)
pci_name(dev->pdev)
, ## args)
#ifdef DEBUG
#undef DEBUG
...
...
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