From: David Brownell <david-b@pacbell.net>
To: Marko Vrh <mvrh@freeshells.ch>
Cc: rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] rtc-cmos: make it load on PNPBIOS systems
Date: Thu, 26 Apr 2007 20:13:44 -0700 [thread overview]
Message-ID: <200704262013.44906.david-b@pacbell.net> (raw)
In-Reply-To: <Pine.NEB.4.64.0704270011030.11494@freeshells.ch>
On Thursday 26 April 2007, Marko Vrh wrote:
> 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>
>
> ----
>
> diff -urNp linux-2.6.21/drivers/rtc/rtc-cmos.c linux-2.6.21.new/drivers/rtc/rtc-cmos.c
> --- linux-2.6.21/drivers/rtc/rtc-cmos.c 2007-04-26 05:08:32.000000000 +0200
> +++ linux-2.6.21.new/drivers/rtc/rtc-cmos.c 2007-04-26 23:58:36.000000000 +0200
> @@ -379,12 +379,12 @@ static irqreturn_t cmos_interrupt(int ir
> return IRQ_NONE;
> }
>
> -#ifdef CONFIG_PNPACPI
> -#define is_pnpacpi() 1
> +#ifdef CONFIG_PNP
> +#define is_pnp() 1
> #define INITSECTION
>
> #else
> -#define is_pnpacpi() 0
> +#define is_pnp() 0
> #define INITSECTION __init
> #endif
>
> @@ -427,7 +427,7 @@ cmos_do_probe(struct device *dev, struct
> * REVISIT for non-x86 systems we may need to handle io memory
> * resources: ioremap them, and request_mem_region().
> */
> - if (is_pnpacpi()) {
> + if (is_pnp()) {
> retval = request_resource(&ioport_resource, ports);
> if (retval < 0) {
> dev_dbg(dev, "i/o registers already in use\n");
> @@ -520,7 +520,7 @@ static void __exit cmos_do_remove(struct
>
> cmos_do_shutdown();
>
> - if (is_pnpacpi())
> + if (is_pnp())
> release_resource(cmos->iomem);
> rename_region(cmos->iomem, NULL);
>
> @@ -613,7 +613,7 @@ static int cmos_resume(struct device *de
> * the device node will always be created as a PNPACPI device.
> */
>
> -#ifdef CONFIG_PNPACPI
> +#ifdef CONFIG_PNP
>
> #include <linux/pnp.h>
>
> @@ -684,11 +684,11 @@ static void __exit cmos_exit(void)
> }
> module_exit(cmos_exit);
>
> -#else /* no PNPACPI */
> +#else /* no PNP */
>
> /*----------------------------------------------------------------*/
>
> -/* Platform setup should have set up an RTC device, when PNPACPI is
> +/* Platform setup should have set up an RTC device, when PNP is
> * unavailable ... this could happen even on (older) PCs.
> */
>
> @@ -734,7 +734,7 @@ static void __exit cmos_exit(void)
> module_exit(cmos_exit);
>
>
> -#endif /* !PNPACPI */
> +#endif /* !PNP */
>
> MODULE_AUTHOR("David Brownell");
> MODULE_DESCRIPTION("Driver for PC-style 'CMOS' RTCs");
>
prev parent reply other threads:[~2007-04-27 3:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-26 22:40 [PATCH] rtc-cmos: make it load on PNPBIOS systems Marko Vrh
2007-04-27 3:13 ` David Brownell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200704262013.44906.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mvrh@freeshells.ch \
--cc=rtc-linux@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.