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
7b77d864
Commit
7b77d864
authored
Feb 17, 2007
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ide: remove ide_pci_device_t tables with only one entry
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
c1607e1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
17 deletions
+11
-17
drivers/ide/pci/cy82c693.c
drivers/ide/pci/cy82c693.c
+9
-12
drivers/ide/pci/sgiioc4.c
drivers/ide/pci/sgiioc4.c
+2
-5
No files found.
drivers/ide/pci/cy82c693.c
View file @
7b77d864
...
...
@@ -478,21 +478,18 @@ static void __devinit init_iops_cy82c693(ide_hwif_t *hwif)
}
}
static
ide_pci_device_t
cy82c693_chipsets
[]
__devinitdata
=
{
{
/* 0 */
.
name
=
"CY82C693"
,
.
init_chipset
=
init_chipset_cy82c693
,
.
init_iops
=
init_iops_cy82c693
,
.
init_hwif
=
init_hwif_cy82c693
,
.
channels
=
1
,
.
autodma
=
AUTODMA
,
.
bootable
=
ON_BOARD
,
}
static
ide_pci_device_t
cy82c693_chipset
__devinitdata
=
{
.
name
=
"CY82C693"
,
.
init_chipset
=
init_chipset_cy82c693
,
.
init_iops
=
init_iops_cy82c693
,
.
init_hwif
=
init_hwif_cy82c693
,
.
channels
=
1
,
.
autodma
=
AUTODMA
,
.
bootable
=
ON_BOARD
,
};
static
int
__devinit
cy82c693_init_one
(
struct
pci_dev
*
dev
,
const
struct
pci_device_id
*
id
)
{
ide_pci_device_t
*
d
=
&
cy82c693_chipsets
[
id
->
driver_data
];
struct
pci_dev
*
dev2
;
int
ret
=
-
ENODEV
;
...
...
@@ -501,7 +498,7 @@ static int __devinit cy82c693_init_one(struct pci_dev *dev, const struct pci_dev
if
((
dev
->
class
>>
8
)
==
PCI_CLASS_STORAGE_IDE
&&
PCI_FUNC
(
dev
->
devfn
)
==
1
)
{
dev2
=
pci_get_slot
(
dev
->
bus
,
dev
->
devfn
+
1
);
ret
=
ide_setup_pci_devices
(
dev
,
dev2
,
d
);
ret
=
ide_setup_pci_devices
(
dev
,
dev2
,
&
cy82c693_chipset
);
/* We leak pci refs here but thats ok - we can't be unloaded */
}
return
ret
;
...
...
drivers/ide/pci/sgiioc4.c
View file @
7b77d864
...
...
@@ -729,8 +729,7 @@ pci_init_sgiioc4(struct pci_dev *dev, ide_pci_device_t * d)
return
ret
;
}
static
ide_pci_device_t
sgiioc4_chipsets
[]
__devinitdata
=
{
{
static
ide_pci_device_t
sgiioc4_chipset
__devinitdata
=
{
/* Channel 0 */
.
name
=
"SGIIOC4"
,
.
init_hwif
=
ide_init_sgiioc4
,
...
...
@@ -739,7 +738,6 @@ static ide_pci_device_t sgiioc4_chipsets[] __devinitdata = {
.
autodma
=
AUTODMA
,
/* SGI IOC4 doesn't have enablebits. */
.
bootable
=
ON_BOARD
,
}
};
int
...
...
@@ -751,8 +749,7 @@ ioc4_ide_attach_one(struct ioc4_driver_data *idd)
if
(
idd
->
idd_variant
==
IOC4_VARIANT_PCI_RT
)
return
0
;
return
pci_init_sgiioc4
(
idd
->
idd_pdev
,
&
sgiioc4_chipsets
[
idd
->
idd_pci_id
->
driver_data
]);
return
pci_init_sgiioc4
(
idd
->
idd_pdev
,
&
sgiioc4_chipset
);
}
static
struct
ioc4_submodule
ioc4_ide_submodule
=
{
...
...
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