max8903_charger: Add GENERIC_HARDIRQS as a dependency (fixes S390 build)
authorAnton Vorontsov <cbouatmailru@gmail.com>
Thu, 21 Apr 2011 23:08:22 +0000 (03:08 +0400)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Thu, 21 Apr 2011 23:17:11 +0000 (03:17 +0400)
S390 is special as it doesn't have IRQ lines, so these errors pop up:

drivers/built-in.o: In function 'max8903_remove':
drivers/power/max8903_charger.c:355: undefined reference to 'free_irq'
drivers/power/max8903_charger.c:357: undefined reference to 'free_irq'
drivers/power/max8903_charger.c:359: undefined reference to 'free_irq'

This commit fixes the issue by making the driver depend on
GENERIC_HARDIRQS feature.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/Kconfig

index 1f50ebcc63992d1ec73f957336cb6940a075e33f..cc019c9812c21be909da7a80e5cb5810be8d7569 100644 (file)
@@ -205,6 +205,7 @@ config CHARGER_ISP1704
 
 config CHARGER_MAX8903
        tristate "MAX8903 Battery DC-DC Charger for USB and Adapter Power"
+       depends on GENERIC_HARDIRQS
        help
          Say Y to enable support for the MAX8903 DC-DC charger and sysfs.
          The driver supports controlling charger-enable and current-limit