From: Kevin Hilman <khilman@deeprootsystems.com>
To: kishore kadiyala <kishore.kadiyala@ti.com>
Cc: linux-omap@vger.kernel.org, tony@atomide.com, b-cousson@ti.com,
adrian.hunter@nokia.com, akpm@linux-foundation.org,
madhu.cr@ti.com
Subject: Re: [PATCH 10/10] [PM-WIP-MMC] omap4 hsmmc: Fix the init if CONFIG_MMC_OMAP_HS is not set
Date: Thu, 26 Aug 2010 16:24:28 -0700 [thread overview]
Message-ID: <87mxs9ufdf.fsf@deeprootsystems.com> (raw)
In-Reply-To: <16186.10.24.255.18.1282335083.squirrel@dbdmail.itg.ti.com> (kishore kadiyala's message of "Sat, 21 Aug 2010 01:41:23 +0530 (IST)")
"kishore kadiyala" <kishore.kadiyala@ti.com> writes:
> From: Benoit Cousson <b-cousson@ti.com
> Avoid possible crash if CONFIG_MMC_OMAP_HS is not set
>
> Cc: Kevin Hilman <khilman@deeprootsystems.com>
> Cc: Adrian Hunter <adrian.hunter@nokia.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Madhusudhan Chikkature <madhu.cr@ti.com>
> Signed-off-by: Benoit Cousson <b-cousson@ti.com>
> Signed-off-by: Kishore Kadiyala <kishore.kadiyala@ti.com>
This is another fix that should go upstream independently of the rest of
the series.
In fact, this should probably be fixed in 2.6.36-rc.
Kevin
> ---
> arch/arm/mach-omap2/board-4430sdp.c | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
> index 9447644..3a0dafd 100644
> --- a/arch/arm/mach-omap2/board-4430sdp.c
> +++ b/arch/arm/mach-omap2/board-4430sdp.c
> @@ -235,8 +235,13 @@ static int omap4_twl6030_hsmmc_late_init(struct device *dev)
>
> static __init void omap4_twl6030_hsmmc_set_late_init(struct device *dev)
> {
> - struct omap_mmc_platform_data *pdata = dev->platform_data;
> + struct omap_mmc_platform_data *pdata;
> +
> + /* dev can be null if CONFIG_MMC_OMAP_HS is not set */
> + if (!dev)
> + return;
>
> + pdata = dev->platform_data;
> pdata->init = omap4_twl6030_hsmmc_late_init;
> }
next prev parent reply other threads:[~2010-08-26 23:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-20 20:11 [PATCH 10/10] [PM-WIP-MMC] omap4 hsmmc: Fix the init if CONFIG_MMC_OMAP_HS is not set kishore kadiyala
2010-08-26 23:24 ` Kevin Hilman [this message]
2010-08-27 14:20 ` kishore kadiyala
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=87mxs9ufdf.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=adrian.hunter@nokia.com \
--cc=akpm@linux-foundation.org \
--cc=b-cousson@ti.com \
--cc=kishore.kadiyala@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=madhu.cr@ti.com \
--cc=tony@atomide.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.