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
c601391b
Commit
c601391b
authored
Sep 28, 2004
by
Greg Kroah-Hartman
Committed by
Greg Kroah-Hartman
Sep 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I2C: convert scx200_acb driver to not use pci_find_device
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
42823f62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
drivers/i2c/busses/scx200_acb.c
drivers/i2c/busses/scx200_acb.c
+7
-6
No files found.
drivers/i2c/busses/scx200_acb.c
View file @
c601391b
...
...
@@ -503,6 +503,12 @@ static int __init scx200_acb_create(int base, int index)
return
rc
;
}
static
struct
pci_device_id
scx200
[]
=
{
{
PCI_DEVICE
(
PCI_VENDOR_ID_NS
,
PCI_DEVICE_ID_NS_SCx200_BRIDGE
)
},
{
PCI_DEVICE
(
PCI_VENDOR_ID_NS
,
PCI_DEVICE_ID_NS_SC1100_BRIDGE
)
},
{
},
};
static
int
__init
scx200_acb_init
(
void
)
{
int
i
;
...
...
@@ -511,12 +517,7 @@ static int __init scx200_acb_init(void)
pr_debug
(
NAME
": NatSemi SCx200 ACCESS.bus Driver
\n
"
);
/* Verify that this really is a SCx200 processor */
if
(
pci_find_device
(
PCI_VENDOR_ID_NS
,
PCI_DEVICE_ID_NS_SCx200_BRIDGE
,
NULL
)
==
NULL
&&
pci_find_device
(
PCI_VENDOR_ID_NS
,
PCI_DEVICE_ID_NS_SC1100_BRIDGE
,
NULL
)
==
NULL
)
if
(
pci_dev_present
(
scx200
)
==
0
)
return
-
ENODEV
;
rc
=
-
ENXIO
;
...
...
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