[PATCH] ARM: pxa: Enable U2D only in case PXA3xx is enabled
Eric Miao
eric.y.miao at gmail.com
Tue Sep 7 02:45:29 EDT 2010
On Tue, Sep 7, 2010 at 2:26 PM, Igor Grinberg <grinberg at compulab.co.il> wrote:
> On 09/07/10 09:11, Eric Miao wrote:
>> On Tue, Sep 7, 2010 at 1:56 PM, Igor Grinberg <grinberg at compulab.co.il> wrote:
>>> On 09/07/10 05:26, Eric Miao wrote:
>>>> On Tue, Sep 7, 2010 at 4:53 AM, Marek Vasut <marek.vasut at gmail.com> wrote:
>>>>> In case PXA3xx support isn't enabled in kernel, the pxa3xx_u2d_start_hc()
>>>>> and pxa3xx_u2d_stop_hc() functions are undefined. Encapsulate their callings
>>>>> with #ifdef CONFIG_PXA3xx macro.
>>>>>
>>>> This isn't necessary. cpu_is_pxa3xx() will expand to zero if CONFIG_PXA3xx
>>>> isn't defined, and the whole if () statement will be optimized away by the
>>>> compiler.
>>> That was my intention, but I haven't checked if it really does the job.
>> It didn't. But I proposed a fix hours ago and it seemed to work. Tested
>> by Marek.
>
> Oh.. now I see this:
> [PATCH] pxa: fix cpu_is_pxa*() not expanded to zero when not configured
>
> This only fixes the problem for cpu's other then pxa3xx,
> we still need one of the proposed fixes for pxa3xx based boards,
> that don't use U2DC, right?
Exactly right.
More information about the linux-arm-kernel
mailing list