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
fdd51140
Commit
fdd51140
authored
Nov 25, 2002
by
Alan Cox
Committed by
Linus Torvalds
Nov 25, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] clean up sis ide for new ifdef style
parent
dec50b82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
drivers/ide/pci/sis5513.c
drivers/ide/pci/sis5513.c
+0
-7
No files found.
drivers/ide/pci/sis5513.c
View file @
fdd51140
...
@@ -703,7 +703,6 @@ static int sis5513_tune_chipset (ide_drive_t *drive, u8 xferspeed)
...
@@ -703,7 +703,6 @@ static int sis5513_tune_chipset (ide_drive_t *drive, u8 xferspeed)
/* Config chip for mode */
/* Config chip for mode */
switch
(
speed
)
{
switch
(
speed
)
{
#ifdef CONFIG_BLK_DEV_IDEDMA
case
XFER_UDMA_6
:
case
XFER_UDMA_6
:
case
XFER_UDMA_5
:
case
XFER_UDMA_5
:
case
XFER_UDMA_4
:
case
XFER_UDMA_4
:
...
@@ -745,7 +744,6 @@ static int sis5513_tune_chipset (ide_drive_t *drive, u8 xferspeed)
...
@@ -745,7 +744,6 @@ static int sis5513_tune_chipset (ide_drive_t *drive, u8 xferspeed)
case
XFER_SW_DMA_1
:
case
XFER_SW_DMA_1
:
case
XFER_SW_DMA_0
:
case
XFER_SW_DMA_0
:
break
;
break
;
#endif
/* CONFIG_BLK_DEV_IDEDMA */
case
XFER_PIO_4
:
return
((
int
)
config_chipset_for_pio
(
drive
,
4
));
case
XFER_PIO_4
:
return
((
int
)
config_chipset_for_pio
(
drive
,
4
));
case
XFER_PIO_3
:
return
((
int
)
config_chipset_for_pio
(
drive
,
3
));
case
XFER_PIO_3
:
return
((
int
)
config_chipset_for_pio
(
drive
,
3
));
case
XFER_PIO_2
:
return
((
int
)
config_chipset_for_pio
(
drive
,
2
));
case
XFER_PIO_2
:
return
((
int
)
config_chipset_for_pio
(
drive
,
2
));
...
@@ -764,7 +762,6 @@ static void sis5513_tune_drive (ide_drive_t *drive, u8 pio)
...
@@ -764,7 +762,6 @@ static void sis5513_tune_drive (ide_drive_t *drive, u8 pio)
(
void
)
config_chipset_for_pio
(
drive
,
pio
);
(
void
)
config_chipset_for_pio
(
drive
,
pio
);
}
}
#ifdef CONFIG_BLK_DEV_IDEDMA
/*
/*
* ((id->hw_config & 0x4000|0x2000) && (HWIF(drive)->udma_four))
* ((id->hw_config & 0x4000|0x2000) && (HWIF(drive)->udma_four))
*/
*/
...
@@ -835,8 +832,6 @@ static int sis5513_config_xfer_rate (ide_drive_t *drive)
...
@@ -835,8 +832,6 @@ static int sis5513_config_xfer_rate (ide_drive_t *drive)
return
sis5513_config_drive_xfer_rate
(
drive
);
return
sis5513_config_drive_xfer_rate
(
drive
);
}
}
#endif
/* CONFIG_BLK_DEV_IDEDMA */
/* Chip detection and general config */
/* Chip detection and general config */
static
unsigned
int
__init
init_chipset_sis5513
(
struct
pci_dev
*
dev
,
const
char
*
name
)
static
unsigned
int
__init
init_chipset_sis5513
(
struct
pci_dev
*
dev
,
const
char
*
name
)
{
{
...
@@ -999,7 +994,6 @@ static void __init init_hwif_sis5513 (ide_hwif_t *hwif)
...
@@ -999,7 +994,6 @@ static void __init init_hwif_sis5513 (ide_hwif_t *hwif)
hwif
->
mwdma_mask
=
0x07
;
hwif
->
mwdma_mask
=
0x07
;
hwif
->
swdma_mask
=
0x07
;
hwif
->
swdma_mask
=
0x07
;
#ifdef CONFIG_BLK_DEV_IDEDMA
if
(
!
host_dev
)
if
(
!
host_dev
)
return
;
return
;
...
@@ -1013,7 +1007,6 @@ static void __init init_hwif_sis5513 (ide_hwif_t *hwif)
...
@@ -1013,7 +1007,6 @@ static void __init init_hwif_sis5513 (ide_hwif_t *hwif)
}
}
hwif
->
drives
[
0
].
autodma
=
hwif
->
autodma
;
hwif
->
drives
[
0
].
autodma
=
hwif
->
autodma
;
hwif
->
drives
[
1
].
autodma
=
hwif
->
autodma
;
hwif
->
drives
[
1
].
autodma
=
hwif
->
autodma
;
#endif
return
;
return
;
}
}
...
...
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