From: Pierre Ossman <drzeus@drzeus.cx>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: linux-kernel@vger.kernel.org, akpm <akpm@linux-foundation.org>,
drzeus-sdhci@drzeus.cx, sdhci-devel@list.drzeus.cx
Subject: Re: mmotm 2008-12-03-01-50 uploaded (sdhci)
Date: Sun, 21 Dec 2008 16:54:20 +0100 [thread overview]
Message-ID: <20081221165420.4e0f364f@mjolnir.drzeus.cx> (raw)
In-Reply-To: <4946B80B.4010609@oracle.com>
[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]
On Mon, 15 Dec 2008 12:03:23 -0800
Randy Dunlap <randy.dunlap@oracle.com> wrote:
>
> Hi Pierre,
>
> If I change the last line above to
> && defined(CONFIG_MMC_SDHCI_MODULE)
> then it builds OK. Using !defined still has build errors...
> and I think that my small change is also correct.
>
Indeed. My bad.
> However, I'd prefer to see this done with Kconfig and then use
> empty stubs for the functions that wouldn't be called.
>
I don't like using Kconfig as a way to clean up the code. But if people
would like the ability to compile out this functionality, then that's
another matter. I have no seen any such requests though.
>
> I think that you should audit the other uses of
> #if defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE)
>
> in sdhci.c as well.
>
Right. I'll queue up a cleaned up version.
> Also, in sdhci_add_host(), why is the call to free_irq() inside the
> CONFIG_LEDS block:
>
> #if defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE)
> reset:
> sdhci_reset(host, SDHCI_RESET_ALL);
> free_irq(host->irq, host);
> #endif
>
Because without the leds class registration, there is no failure mode
that requires freeing the interrupt.
Rgds
--
-- Pierre Ossman
WARNING: This correspondence is being monitored by the
Swedish government. Make sure your server uses encryption
for SMTP traffic and consider using PGP for end-to-end
encryption.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2008-12-21 15:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200812031006.mB3A6BRM004500@imap1.linux-foundation.org>
2008-12-03 20:53 ` Randy Dunlap
2008-12-14 17:40 ` Pierre Ossman
2008-12-15 20:03 ` Randy Dunlap
2008-12-21 15:54 ` Pierre Ossman [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=20081221165420.4e0f364f@mjolnir.drzeus.cx \
--to=drzeus@drzeus.cx \
--cc=akpm@linux-foundation.org \
--cc=drzeus-sdhci@drzeus.cx \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
--cc=sdhci-devel@list.drzeus.cx \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®