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
0ff95582
Commit
0ff95582
authored
Aug 20, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix irda vlsi_ir.c for PCI device 'name' changes.
parent
6f8d4b06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
drivers/net/irda/vlsi_ir.c
drivers/net/irda/vlsi_ir.c
+10
-10
No files found.
drivers/net/irda/vlsi_ir.c
View file @
0ff95582
...
@@ -164,7 +164,7 @@ static int vlsi_proc_pdev(struct pci_dev *pdev, char *buf, int len)
...
@@ -164,7 +164,7 @@ static int vlsi_proc_pdev(struct pci_dev *pdev, char *buf, int len)
return
0
;
return
0
;
out
+=
sprintf
(
out
,
"
\n
%s (vid/did: %04x/%04x)
\n
"
,
out
+=
sprintf
(
out
,
"
\n
%s (vid/did: %04x/%04x)
\n
"
,
p
dev
->
dev
.
name
,
(
int
)
pdev
->
vendor
,
(
int
)
pdev
->
device
);
p
ci_name
(
pdev
)
,
(
int
)
pdev
->
vendor
,
(
int
)
pdev
->
device
);
out
+=
sprintf
(
out
,
"pci-power-state: %u
\n
"
,
(
unsigned
)
pdev
->
current_state
);
out
+=
sprintf
(
out
,
"pci-power-state: %u
\n
"
,
(
unsigned
)
pdev
->
current_state
);
out
+=
sprintf
(
out
,
"resources: irq=%u / io=0x%04x / dma_mask=0x%016Lx
\n
"
,
out
+=
sprintf
(
out
,
"resources: irq=%u / io=0x%04x / dma_mask=0x%016Lx
\n
"
,
pdev
->
irq
,
(
unsigned
)
pci_resource_start
(
pdev
,
0
),
(
u64
)
pdev
->
dma_mask
);
pdev
->
irq
,
(
unsigned
)
pci_resource_start
(
pdev
,
0
),
(
u64
)
pdev
->
dma_mask
);
...
@@ -1522,7 +1522,7 @@ static void vlsi_tx_timeout(struct net_device *ndev)
...
@@ -1522,7 +1522,7 @@ static void vlsi_tx_timeout(struct net_device *ndev)
if
(
vlsi_start_hw
(
idev
))
if
(
vlsi_start_hw
(
idev
))
printk
(
KERN_CRIT
"%s: failed to restart hw - %s(%s) unusable!
\n
"
,
printk
(
KERN_CRIT
"%s: failed to restart hw - %s(%s) unusable!
\n
"
,
__FUNCTION__
,
idev
->
pdev
->
dev
.
name
,
ndev
->
name
);
__FUNCTION__
,
pci_name
(
idev
->
pdev
)
,
ndev
->
name
);
else
else
netif_start_queue
(
ndev
);
netif_start_queue
(
ndev
);
}
}
...
@@ -1772,7 +1772,7 @@ vlsi_irda_probe(struct pci_dev *pdev, const struct pci_device_id *id)
...
@@ -1772,7 +1772,7 @@ vlsi_irda_probe(struct pci_dev *pdev, const struct pci_device_id *id)
pdev
->
current_state
=
0
;
/* hw must be running now */
pdev
->
current_state
=
0
;
/* hw must be running now */
printk
(
KERN_INFO
"%s: IrDA PCI controller %s detected
\n
"
,
printk
(
KERN_INFO
"%s: IrDA PCI controller %s detected
\n
"
,
drivername
,
p
dev
->
dev
.
name
);
drivername
,
p
ci_name
(
pdev
)
);
if
(
!
pci_resource_start
(
pdev
,
0
)
if
(
!
pci_resource_start
(
pdev
,
0
)
||
!
(
pci_resource_flags
(
pdev
,
0
)
&
IORESOURCE_IO
)
)
{
||
!
(
pci_resource_flags
(
pdev
,
0
)
&
IORESOURCE_IO
)
)
{
...
@@ -1867,7 +1867,7 @@ static void __devexit vlsi_irda_remove(struct pci_dev *pdev)
...
@@ -1867,7 +1867,7 @@ static void __devexit vlsi_irda_remove(struct pci_dev *pdev)
* ndev->destructor called (if present) when going to free
* ndev->destructor called (if present) when going to free
*/
*/
printk
(
KERN_INFO
"%s: %s removed
\n
"
,
drivername
,
p
dev
->
dev
.
name
);
printk
(
KERN_INFO
"%s: %s removed
\n
"
,
drivername
,
p
ci_name
(
pdev
)
);
}
}
#ifdef CONFIG_PM
#ifdef CONFIG_PM
...
@@ -1883,7 +1883,7 @@ static int vlsi_irda_save_state(struct pci_dev *pdev, u32 state)
...
@@ -1883,7 +1883,7 @@ static int vlsi_irda_save_state(struct pci_dev *pdev, u32 state)
{
{
if
(
state
<
1
||
state
>
3
)
{
if
(
state
<
1
||
state
>
3
)
{
printk
(
KERN_ERR
"%s - %s: invalid pm state request: %u
\n
"
,
printk
(
KERN_ERR
"%s - %s: invalid pm state request: %u
\n
"
,
__FUNCTION__
,
p
dev
->
dev
.
name
,
state
);
__FUNCTION__
,
p
ci_name
(
pdev
)
,
state
);
return
-
1
;
return
-
1
;
}
}
return
0
;
return
0
;
...
@@ -1896,11 +1896,11 @@ static int vlsi_irda_suspend(struct pci_dev *pdev, u32 state)
...
@@ -1896,11 +1896,11 @@ static int vlsi_irda_suspend(struct pci_dev *pdev, u32 state)
if
(
state
<
1
||
state
>
3
)
{
if
(
state
<
1
||
state
>
3
)
{
printk
(
KERN_ERR
"%s - %s: invalid pm state request: %u
\n
"
,
printk
(
KERN_ERR
"%s - %s: invalid pm state request: %u
\n
"
,
__FUNCTION__
,
p
dev
->
dev
.
name
,
state
);
__FUNCTION__
,
p
ci_name
(
pdev
)
,
state
);
return
0
;
return
0
;
}
}
if
(
!
ndev
)
{
if
(
!
ndev
)
{
printk
(
KERN_ERR
"%s - %s: no netdevice
\n
"
,
__FUNCTION__
,
p
dev
->
dev
.
name
);
printk
(
KERN_ERR
"%s - %s: no netdevice
\n
"
,
__FUNCTION__
,
p
ci_name
(
pdev
)
);
return
0
;
return
0
;
}
}
idev
=
ndev
->
priv
;
idev
=
ndev
->
priv
;
...
@@ -1912,7 +1912,7 @@ static int vlsi_irda_suspend(struct pci_dev *pdev, u32 state)
...
@@ -1912,7 +1912,7 @@ static int vlsi_irda_suspend(struct pci_dev *pdev, u32 state)
}
}
else
else
printk
(
KERN_ERR
"%s - %s: invalid suspend request %u -> %u
\n
"
,
printk
(
KERN_ERR
"%s - %s: invalid suspend request %u -> %u
\n
"
,
__FUNCTION__
,
p
dev
->
dev
.
name
,
pdev
->
current_state
,
state
);
__FUNCTION__
,
p
ci_name
(
pdev
)
,
pdev
->
current_state
,
state
);
up
(
&
idev
->
sem
);
up
(
&
idev
->
sem
);
return
0
;
return
0
;
}
}
...
@@ -1939,14 +1939,14 @@ static int vlsi_irda_resume(struct pci_dev *pdev)
...
@@ -1939,14 +1939,14 @@ static int vlsi_irda_resume(struct pci_dev *pdev)
vlsi_irda_dev_t
*
idev
;
vlsi_irda_dev_t
*
idev
;
if
(
!
ndev
)
{
if
(
!
ndev
)
{
printk
(
KERN_ERR
"%s - %s: no netdevice
\n
"
,
__FUNCTION__
,
p
dev
->
dev
.
name
);
printk
(
KERN_ERR
"%s - %s: no netdevice
\n
"
,
__FUNCTION__
,
p
ci_name
(
pdev
)
);
return
0
;
return
0
;
}
}
idev
=
ndev
->
priv
;
idev
=
ndev
->
priv
;
down
(
&
idev
->
sem
);
down
(
&
idev
->
sem
);
if
(
pdev
->
current_state
==
0
)
{
if
(
pdev
->
current_state
==
0
)
{
up
(
&
idev
->
sem
);
up
(
&
idev
->
sem
);
printk
(
KERN_ERR
"%s - %s: already resumed
\n
"
,
__FUNCTION__
,
p
dev
->
dev
.
name
);
printk
(
KERN_ERR
"%s - %s: already resumed
\n
"
,
__FUNCTION__
,
p
ci_name
(
pdev
)
);
return
0
;
return
0
;
}
}
...
...
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