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
c4e4d47d
Commit
c4e4d47d
authored
Oct 03, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PCI: remove pcibios_find_device() from the 53c7,8xx.c SCSI driver
parent
ecc518ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
drivers/scsi/53c7,8xx.c
drivers/scsi/53c7,8xx.c
+5
-8
No files found.
drivers/scsi/53c7,8xx.c
View file @
c4e4d47d
...
@@ -1533,8 +1533,7 @@ NCR53c7xx_detect(Scsi_Host_Template *tpnt){
...
@@ -1533,8 +1533,7 @@ NCR53c7xx_detect(Scsi_Host_Template *tpnt){
int
i
;
int
i
;
int
current_override
;
int
current_override
;
int
count
;
/* Number of boards detected */
int
count
;
/* Number of boards detected */
unsigned
char
pci_bus
,
pci_device_fn
;
struct
pci_dev
*
pdev
=
NULL
;
static
short
pci_index
=
0
;
/* Device index to PCI BIOS calls */
tpnt
->
proc_name
=
"ncr53c7xx"
;
tpnt
->
proc_name
=
"ncr53c7xx"
;
...
@@ -1563,13 +1562,11 @@ NCR53c7xx_detect(Scsi_Host_Template *tpnt){
...
@@ -1563,13 +1562,11 @@ NCR53c7xx_detect(Scsi_Host_Template *tpnt){
if
(
pci_present
())
{
if
(
pci_present
())
{
for
(
i
=
0
;
i
<
NPCI_CHIP_IDS
;
++
i
)
for
(
i
=
0
;
i
<
NPCI_CHIP_IDS
;
++
i
)
for
(
pci_index
=
0
;
while
((
pdev
=
pci_find_device
(
PCI_VENDOR_ID_NCR
,
!
pcibios_find_device
(
PCI_VENDOR_ID_NCR
,
pci_chip_ids
[
i
].
pci_device_id
,
pci_chip_ids
[
i
].
pci_device_id
,
pci_index
,
&
pci_bus
,
pdev
)))
&
pci_device_fn
);
++
pci_index
)
if
(
!
ncr_pci_init
(
tpnt
,
BOARD_GENERIC
,
pci_chip_ids
[
i
].
chip
,
if
(
!
ncr_pci_init
(
tpnt
,
BOARD_GENERIC
,
pci_chip_ids
[
i
].
chip
,
p
ci_bus
,
pci_device_
fn
,
/* no options */
0
))
p
dev
->
bus
->
number
,
pdev
->
dev
fn
,
/* no options */
0
))
++
count
;
++
count
;
}
}
return
count
;
return
count
;
...
...
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