[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120709111519.GM15345@sortiz-mobl>
Date: Mon, 9 Jul 2012 13:15:19 +0200
From: Samuel Ortiz <sameo@...ux.intel.com>
To: NeilBrown <neilb@...e.de>
Cc: linux-kernel@...r.kernel.org, linux-omap@...r.kernel.org,
linux-pm@...r.kernel.org
Subject: Re: [PATCH] MFD: twl-core: move device_init_wakeup to after
platform_device_add.
Hi Neil,
On Sat, Jul 07, 2012 at 08:51:03AM +1000, NeilBrown wrote:
>
>
> device_init_wakeup uses the dev_name() of the device to set the
> name of the wakeup_source which appears in
> /sys/kernel/debug/wakeup_sources.
>
> For a platform device, that name is not set until platform_device_add
> calls dev_set_name.
>
> So the call to device_init_wakeup() must be after the call to
> platform_device_add().
> Making this change causes correct names to appear in the
> wakeup_sources file.
Applied, thanks.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists