LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Pierre Ossman <drzeus-list@drzeus.cx>
To: Carlos Aguiar <carlos.aguiar@indt.org.br>
Cc: Tony Lindgren <tony@atomide.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 05/18] MMC: OMAP: Introduce new multislot structure and change driver to use it
Date: Mon, 24 Mar 2008 13:13:11 +0100 [thread overview]
Message-ID: <20080324131311.43c5d54c@mjolnir.drzeus.cx> (raw)
In-Reply-To: <47DAD3B1.4060502@indt.org.br>
On Fri, 14 Mar 2008 15:36:17 -0400
Carlos Aguiar <carlos.aguiar@indt.org.br> wrote:
> From: Juha Yrjola <juha.yrjola@solidboot.com>
>
> Introduce new MMC multislot structure and change driver to use it.
>
> Note that MMC clocking is now enabled in mmc_omap_select_slot()
> and disabled in mmc_omap_release_slot().
>
> Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
> Signed-off-by: Jarkko Lavinen <jarkko.lavinen@nokia.com>
> Signed-off-by: Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
> ---
*snip*
> +
> + if (slot->pdata->name != NULL) {
> + r = device_create_file(&mmc->class_dev,
> + &dev_attr_slot_name);
> + if (r < 0)
> + goto err_remove_host;
> + }
> +
> + if (slot->pdata->get_ro != NULL) {
> + r = device_create_file(&mmc->class_dev,
> + &dev_attr_ro);
> + }
> +
I guess these should have been removed as well?
> +static void mmc_omap_remove_slot(struct mmc_omap_slot *slot)
> +{
> + struct mmc_host *mmc = slot->mmc;
> +
> + if (slot->pdata->name != NULL)
> + device_remove_file(&mmc->class_dev, &dev_attr_slot_name);
> + if (slot->pdata->get_ro != NULL)
> + device_remove_file(&mmc->class_dev, &dev_attr_ro);
> +
Same thing here.
Otherwise the patch looks fine.
--
-- Pierre Ossman
Linux kernel, MMC maintainer http://www.kernel.org
PulseAudio, core developer http://pulseaudio.org
rdesktop, core developer http://www.rdesktop.org
next prev parent reply other threads:[~2008-03-24 11:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-14 19:36 Carlos Aguiar
2008-03-24 12:13 ` Pierre Ossman [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-03-14 19:35 [PATCH 00/18] MMC: OMAP: Sync MMC OMAP driver with mainline tree Carlos Aguiar
2008-03-24 12:26 ` Pierre Ossman
2008-03-26 20:08 ` [PATCH 05/18] MMC: OMAP: Introduce new multislot structure and change driver to use it Carlos Aguiar
2008-01-28 19:07 Carlos Aguiar
2008-01-29 1:17 ` Roel Kluin
2008-02-07 17:37 ` Pierre Ossman
2008-03-05 20:54 ` Felipe Balbi
2008-03-06 6:34 ` Pierre Ossman
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=20080324131311.43c5d54c@mjolnir.drzeus.cx \
--to=drzeus-list@drzeus.cx \
--cc=carlos.aguiar@indt.org.br \
--cc=linux-kernel@vger.kernel.org \
--cc=tony@atomide.com \
--subject='Re: [PATCH 05/18] MMC: OMAP: Introduce new multislot structure and change driver to use it' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).