aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/pci/irq.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-10-03 15:15:40 -0400
committerJeff Garzik <jeff@garzik.org>2007-10-09 20:22:20 -0400
commit1855256c497ecfefc730df6032243f26855ce52c (patch)
treeb73947f1a5e1b798e1dec068ac1cda25ae910bf6 /arch/i386/pci/irq.c
parentbbf25010f1a6b761914430f5fca081ec8c7accd1 (diff)
drivers/firmware: const-ify DMI API and internals
Three main sets of changes: 1) dmi_get_system_info() return value should have been marked const, since callers should not be changing that data. 2) const-ify DMI internals, since DMI firmware tables should, whenever possible, be marked const to ensure we never ever write to that data area. 3) const-ify DMI API, to enable marking tables const where possible in low-level drivers. And if we're really lucky, this might enable some additional optimizations on the part of the compiler. The bulk of the changes are #2 and #3, which are interrelated. #1 could have been a separate patch, but it was so small compared to the others, it was easier to roll it into this changeset. Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'arch/i386/pci/irq.c')
-rw-r--r--arch/i386/pci/irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/i386/pci/irq.c b/arch/i386/pci/irq.c
index 8434f2323b87..d98c6b096f8e 100644
--- a/arch/i386/pci/irq.c
+++ b/arch/i386/pci/irq.c
@@ -1010,7 +1010,7 @@ static void __init pcibios_fixup_irqs(void)
1010 * Work around broken HP Pavilion Notebooks which assign USB to 1010 * Work around broken HP Pavilion Notebooks which assign USB to
1011 * IRQ 9 even though it is actually wired to IRQ 11 1011 * IRQ 9 even though it is actually wired to IRQ 11
1012 */ 1012 */
1013static int __init fix_broken_hp_bios_irq9(struct dmi_system_id *d) 1013static int __init fix_broken_hp_bios_irq9(const struct dmi_system_id *d)
1014{ 1014{
1015 if (!broken_hp_bios_irq9) { 1015 if (!broken_hp_bios_irq9) {
1016 broken_hp_bios_irq9 = 1; 1016 broken_hp_bios_irq9 = 1;
@@ -1023,7 +1023,7 @@ static int __init fix_broken_hp_bios_irq9(struct dmi_system_id *d)
1023 * Work around broken Acer TravelMate 360 Notebooks which assign 1023 * Work around broken Acer TravelMate 360 Notebooks which assign
1024 * Cardbus to IRQ 11 even though it is actually wired to IRQ 10 1024 * Cardbus to IRQ 11 even though it is actually wired to IRQ 10
1025 */ 1025 */
1026static int __init fix_acer_tm360_irqrouting(struct dmi_system_id *d) 1026static int __init fix_acer_tm360_irqrouting(const struct dmi_system_id *d)
1027{ 1027{
1028 if (!acer_tm360_irqrouting) { 1028 if (!acer_tm360_irqrouting) {
1029 acer_tm360_irqrouting = 1; 1029 acer_tm360_irqrouting = 1;