]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86: i8259: export legacy_pic symbol
authorHans de Goede <hdegoede@redhat.com>
Sat, 8 Apr 2017 17:54:20 +0000 (19:54 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 14 Apr 2017 10:08:51 +0000 (12:08 +0200)
The classic PC rtc-coms driver has a workaround for broken ACPI device
nodes for it which lack an irq resource. This workaround used to
unconditionally hardcode the irq to 8 in these cases.

This was causing irq conflict problems on systems without a legacy-pic
so a recent patch added an if (nr_legacy_irqs()) guard to the
workaround to avoid this irq conflict.

nr_legacy_irqs() uses the legacy_pic symbol under the hood causing
an undefined symbol error if the rtc-cmos code is build as a module.

This commit exports the legacy_pic symbol to fix this.

Cc: rtc-linux@googlegroups.com
Cc: alexandre.belloni@free-electrons.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
arch/x86/kernel/i8259.c

index be22f5a2192e358153610ebdf95a823da1ea8e5f..4e3b8a587c882ee8a0e2c39678fde12738c7752c 100644 (file)
@@ -418,6 +418,7 @@ struct legacy_pic default_legacy_pic = {
 };
 
 struct legacy_pic *legacy_pic = &default_legacy_pic;
+EXPORT_SYMBOL(legacy_pic);
 
 static int __init i8259A_init_ops(void)
 {