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
1023304f
Commit
1023304f
authored
Aug 04, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PCI: fix compiler warning in quirks file, and other minor quirks cleanup
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
855c0673
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
+10
-14
drivers/pci/pci.c
drivers/pci/pci.c
+1
-1
drivers/pci/probe.c
drivers/pci/probe.c
+1
-1
drivers/pci/quirks.c
drivers/pci/quirks.c
+8
-12
No files found.
drivers/pci/pci.c
View file @
1023304f
...
...
@@ -745,7 +745,7 @@ static int __devinit pci_init(void)
struct
pci_dev
*
dev
=
NULL
;
while
((
dev
=
pci_find_device
(
PCI_ANY_ID
,
PCI_ANY_ID
,
dev
))
!=
NULL
)
{
pci_fixup_device
(
PCI_FIXUP_FINAL
,
dev
);
pci_fixup_device
(
pci_fixup_final
,
dev
);
}
return
0
;
}
...
...
drivers/pci/probe.c
View file @
1023304f
...
...
@@ -640,7 +640,7 @@ pci_scan_single_device(struct pci_bus *bus, int devfn)
return
NULL
;
/* Fix up broken headers */
pci_fixup_device
(
PCI_FIXUP_HEADER
,
dev
);
pci_fixup_device
(
pci_fixup_header
,
dev
);
/*
* Add the device to our list of discovered devices
...
...
drivers/pci/quirks.c
View file @
1023304f
/*
* $Id: quirks.c,v 1.5 1998/05/02 19:24:14 mj Exp $
*
* This file contains work-arounds for many known PCI hardware
* bugs. Devices present only on certain architectures (host
* bridges et cetera) should be handled in arch-specific code.
*
* Note: any quirks for hotpluggable devices must _NOT_ be declared __init.
*
* Copyright (c) 1999 Martin Mares <mj@ucw.cz>
*
* The bridge optimization stuff has been removed. If you really
...
...
@@ -1011,13 +1011,6 @@ static void __devinit quirk_pciehp_msi(struct pci_dev *pdev)
}
DECLARE_PCI_FIXUP_FINAL
(
PCI_VENDOR_ID_INTEL
,
PCI_DEVICE_ID_INTEL_SMCH
,
quirk_pciehp_msi
);
/*
* The main table of quirks.
*
* Note: any hooks for hotpluggable devices in this table must _NOT_
* be declared __init.
*/
static
void
pci_do_fixups
(
struct
pci_dev
*
dev
,
struct
pci_fixup
*
f
,
struct
pci_fixup
*
end
)
{
...
...
@@ -1038,20 +1031,23 @@ extern struct pci_fixup __end_pci_fixups_header[];
extern
struct
pci_fixup
__start_pci_fixups_final
[];
extern
struct
pci_fixup
__end_pci_fixups_final
[];
void
pci_fixup_device
(
int
pass
,
struct
pci_dev
*
dev
)
void
pci_fixup_device
(
enum
pci_fixup_pass
pass
,
struct
pci_dev
*
dev
)
{
struct
pci_fixup
*
start
,
*
end
;
switch
(
pass
)
{
case
PCI_FIXUP_HEADER
:
case
pci_fixup_header
:
start
=
__start_pci_fixups_header
;
end
=
__end_pci_fixups_header
;
break
;
case
PCI_FIXUP_FINAL
:
case
pci_fixup_final
:
start
=
__start_pci_fixups_final
;
end
=
__end_pci_fixups_final
;
break
;
default:
/* stupid compiler warning, you would think with an enum... */
return
;
}
pci_do_fixups
(
dev
,
start
,
end
);
}
...
...
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