[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110121121352.GD8186@opensource.wolfsonmicro.com>
Date: Fri, 21 Jan 2011 12:13:53 +0000
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Kim Kyuwon <q1.kim@...sung.com>, Kim Kyuwon <chammoru@...il.com>,
Richard Purdie <rpurdie@...ys.net>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] leds: Convert bd2802 driver to dev_pm_ops
On Thu, Jan 20, 2011 at 03:35:28PM -0800, Andrew Morton wrote:
> It's tricky to get the compiler/linker to discard code and data without
> triggering an unused-var warning. cpu_notifier() does it by emitting a
> reference:
SIMPLE_DEV_PM_OPS() is being a bit more brute force than that - it
just defines out the reference if compiled without PM_SLEEP. You still
need the ifdefs around the function definitions, but not their uses.
--
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