diff options
author | Marko Vrh <mvrh@freeshells.ch> | 2007-05-08 03:34:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:19 -0400 |
commit | 41ac8df9d5b731a4dd8f1f4e5a9de6ef8768383d (patch) | |
tree | 83b54a07e5bc95007fe10d2beb8aba01bc3591b0 /drivers/rtc | |
parent | f8245c26886c912627ebc49f714e4491261224c4 (diff) |
rtc-cmos: make it load on PNPBIOS systems
Replace CONFIG_PNPACPI with CONFIG_PNP, so it loads on ACPI-less PNPBIOS
systems.
Signed-off-by: Marko Vrh <mvrh@freeshells.ch>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-cmos.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index 3fbfdd16191d..6085261aa2c1 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c | |||
@@ -383,12 +383,12 @@ static irqreturn_t cmos_interrupt(int irq, void *p) | |||
383 | return IRQ_NONE; | 383 | return IRQ_NONE; |
384 | } | 384 | } |
385 | 385 | ||
386 | #ifdef CONFIG_PNPACPI | 386 | #ifdef CONFIG_PNP |
387 | #define is_pnpacpi() 1 | 387 | #define is_pnp() 1 |
388 | #define INITSECTION | 388 | #define INITSECTION |
389 | 389 | ||
390 | #else | 390 | #else |
391 | #define is_pnpacpi() 0 | 391 | #define is_pnp() 0 |
392 | #define INITSECTION __init | 392 | #define INITSECTION __init |
393 | #endif | 393 | #endif |
394 | 394 | ||
@@ -438,7 +438,7 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq) | |||
438 | * REVISIT for non-x86 systems we may need to handle io memory | 438 | * REVISIT for non-x86 systems we may need to handle io memory |
439 | * resources: ioremap them, and request_mem_region(). | 439 | * resources: ioremap them, and request_mem_region(). |
440 | */ | 440 | */ |
441 | if (is_pnpacpi()) { | 441 | if (is_pnp()) { |
442 | retval = request_resource(&ioport_resource, ports); | 442 | retval = request_resource(&ioport_resource, ports); |
443 | if (retval < 0) { | 443 | if (retval < 0) { |
444 | dev_dbg(dev, "i/o registers already in use\n"); | 444 | dev_dbg(dev, "i/o registers already in use\n"); |
@@ -531,7 +531,7 @@ static void __exit cmos_do_remove(struct device *dev) | |||
531 | 531 | ||
532 | cmos_do_shutdown(); | 532 | cmos_do_shutdown(); |
533 | 533 | ||
534 | if (is_pnpacpi()) | 534 | if (is_pnp()) |
535 | release_resource(cmos->iomem); | 535 | release_resource(cmos->iomem); |
536 | rename_region(cmos->iomem, NULL); | 536 | rename_region(cmos->iomem, NULL); |
537 | 537 | ||
@@ -630,7 +630,7 @@ static int cmos_resume(struct device *dev) | |||
630 | * the device node will always be created as a PNPACPI device. | 630 | * the device node will always be created as a PNPACPI device. |
631 | */ | 631 | */ |
632 | 632 | ||
633 | #ifdef CONFIG_PNPACPI | 633 | #ifdef CONFIG_PNP |
634 | 634 | ||
635 | #include <linux/pnp.h> | 635 | #include <linux/pnp.h> |
636 | 636 | ||
@@ -701,11 +701,11 @@ static void __exit cmos_exit(void) | |||
701 | } | 701 | } |
702 | module_exit(cmos_exit); | 702 | module_exit(cmos_exit); |
703 | 703 | ||
704 | #else /* no PNPACPI */ | 704 | #else /* no PNP */ |
705 | 705 | ||
706 | /*----------------------------------------------------------------*/ | 706 | /*----------------------------------------------------------------*/ |
707 | 707 | ||
708 | /* Platform setup should have set up an RTC device, when PNPACPI is | 708 | /* Platform setup should have set up an RTC device, when PNP is |
709 | * unavailable ... this could happen even on (older) PCs. | 709 | * unavailable ... this could happen even on (older) PCs. |
710 | */ | 710 | */ |
711 | 711 | ||
@@ -751,7 +751,7 @@ static void __exit cmos_exit(void) | |||
751 | module_exit(cmos_exit); | 751 | module_exit(cmos_exit); |
752 | 752 | ||
753 | 753 | ||
754 | #endif /* !PNPACPI */ | 754 | #endif /* !PNP */ |
755 | 755 | ||
756 | MODULE_AUTHOR("David Brownell"); | 756 | MODULE_AUTHOR("David Brownell"); |
757 | MODULE_DESCRIPTION("Driver for PC-style 'CMOS' RTCs"); | 757 | MODULE_DESCRIPTION("Driver for PC-style 'CMOS' RTCs"); |