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
fefcb2b6
Commit
fefcb2b6
authored
Nov 28, 2005
by
James.Smart@Emulex.Com
Committed by
James Bottomley
Dec 13, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SCSI] lpfc 8.1.1 : kill use of pci_read_config_xxx
Signed-off-by:
James Bottomley
<
James.Bottomley@SteelEye.com
>
parent
445cf4f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_init.c
+3
-7
No files found.
drivers/scsi/lpfc/lpfc_init.c
View file @
fefcb2b6
...
...
@@ -763,14 +763,12 @@ static void
lpfc_get_hba_model_desc
(
struct
lpfc_hba
*
phba
,
uint8_t
*
mdp
,
uint8_t
*
descp
)
{
lpfc_vpd_t
*
vp
;
uint16_t
dev_id
;
uint16_t
dev_subid
;
uint8_t
hdrtype
;
uint16_t
dev_id
=
phba
->
pcidev
->
device
;
uint16_t
dev_subid
=
phba
->
pcidev
->
subsystem_device
;
uint8_t
hdrtype
=
phba
->
pcidev
->
hdr_type
;
char
*
model_str
=
""
;
vp
=
&
phba
->
vpd
;
pci_read_config_word
(
phba
->
pcidev
,
PCI_DEVICE_ID
,
&
dev_id
);
pci_read_config_byte
(
phba
->
pcidev
,
PCI_HEADER_TYPE
,
&
hdrtype
);
switch
(
dev_id
)
{
case
PCI_DEVICE_ID_FIREFLY
:
...
...
@@ -871,8 +869,6 @@ lpfc_get_hba_model_desc(struct lpfc_hba * phba, uint8_t * mdp, uint8_t * descp)
break
;
case
PCI_DEVICE_ID_LP11000S
:
case
PCI_DEVICE_ID_LPE11000S
:
pci_read_config_word
(
phba
->
pcidev
,
PCI_SUBSYSTEM_ID
,
&
dev_subid
);
switch
(
dev_subid
)
{
case
PCI_SUBSYSTEM_ID_LP11000S
:
model_str
=
"LP11002-S 4Gb PCI-X2"
;
...
...
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