[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK9yfHzxDTp=_upSN0b+c-HtAPgVSOR9GODadJZTnKiMGXczow@mail.gmail.com>
Date: Mon, 30 Sep 2013 17:22:19 +0530
From: Sachin Kamat <sachin.kamat@...aro.org>
To: Mark Brown <broonie@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
Liam Girdwood <lgirdwood@...il.com>
Subject: Re: [PATCH 1/2] regulator: ti-abb: Remove redundant of_match_ptr
On 30 September 2013 16:31, Mark Brown <broonie@...nel.org> wrote:
> On Mon, Sep 30, 2013 at 02:27:13PM +0530, Sachin Kamat wrote:
>
> Note that one of the things these macros are supposed to do (but don't
> yet IIRC) is allow for dead code elimination to discard references to
> things automatically even without the being ifdefed out.
Yes that is correct. However, in this particular case all that
of_match_ptr() does
is make the pointer NULL if CONFIG_OF is disabled else assign it as
is. Since CONFIG_OF
is not used in these files, I thought it would be an appropriate cleanup.
--
With warm regards,
Sachin
--
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