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
ef11a2e4
Commit
ef11a2e4
authored
Oct 27, 2002
by
Alan Cox
Committed by
Linus Torvalds
Oct 27, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] move hpt366 to pci_get
parent
cdd88726
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/ide/pci/hpt366.c
drivers/ide/pci/hpt366.c
+5
-5
No files found.
drivers/ide/pci/hpt366.c
View file @
ef11a2e4
...
...
@@ -316,7 +316,7 @@ static void hpt366_tune_chipset (ide_drive_t *drive, u8 xferspeed)
#endif
reg2
=
pci_bus_clock_list
(
speed
,
(
struct
chipset_bus_clock_list_entry
*
)
dev
->
driver_data
);
(
struct
chipset_bus_clock_list_entry
*
)
pci_get_drvdata
(
dev
)
);
/*
* Disable on-chip PIO FIFO/buffer
* (to avoid problems handling I/O errors later)
...
...
@@ -369,7 +369,7 @@ static void hpt370_tune_chipset (ide_drive_t *drive, u8 xferspeed)
list_conf
=
pci_bus_clock_list
(
speed
,
(
struct
chipset_bus_clock_list_entry
*
)
dev
->
driver_data
);
pci_get_drvdata
(
dev
)
);
pci_read_config_dword
(
dev
,
drive_pci
,
&
drive_conf
);
list_conf
=
(
list_conf
&
~
conf_mask
)
|
(
drive_conf
&
conf_mask
);
...
...
@@ -401,7 +401,7 @@ static void hpt372_tune_chipset (ide_drive_t *drive, u8 xferspeed)
list_conf
=
pci_bus_clock_list
(
speed
,
(
struct
chipset_bus_clock_list_entry
*
)
dev
->
driver_data
);
pci_get_drvdata
(
dev
)
);
pci_read_config_dword
(
dev
,
drive_pci
,
&
drive_conf
);
list_conf
=
(
list_conf
&
~
conf_mask
)
|
(
drive_conf
&
conf_mask
);
if
(
speed
<
XFER_MW_DMA_0
)
...
...
@@ -841,7 +841,7 @@ static int __init init_hpt37x(struct pci_dev *dev)
* don't like to use the PLL because it will cause glitches
* on PRST/SRST when the HPT state engine gets reset.
*/
if
(
dev
->
driver_data
)
if
(
pci_get_drvdata
(
dev
)
)
goto
init_hpt37X_done
;
/*
...
...
@@ -923,7 +923,7 @@ static int __init init_hpt366 (struct pci_dev *dev)
break
;
}
if
(
!
dev
->
driver_data
)
if
(
!
pci_get_drvdata
(
dev
)
)
{
printk
(
KERN_ERR
"hpt366: unknown bus timing.
\n
"
);
return
-
EOPNOTSUPP
;
...
...
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