[PATCH 2/6 v2] ARM: integrator: check PL010 device name rather than base address

Linus Walleij linus.walleij at linaro.org
Tue Sep 4 05:51:21 EST 2012


On Mon, Sep 3, 2012 at 9:40 PM, Linus Walleij <linus.walleij at linaro.org> wrote:
> On Sat, Sep 1, 2012 at 8:32 PM, Arnd Bergmann <arnd at arndb.de> wrote:

>> On Saturday 01 September 2012, Linus Walleij wrote:
>>> -       if (dev == &uart0_device) {
>>> +       if (!strcmp(dev_name(&dev->dev), "uart0")) {
>>>                 rts_mask = 1 << 4;
>>>                 dtr_mask = 1 << 5;
>>>         } else {
>>
>> Maybe it's possible to compare the base pointer against INTEGRATOR_UART0_BASE instead?
>
> Nope, that is an ioremapped() base, I have no clue what it may be.

But hey I have the struct amba_device there, so the mem resource is there
indeed :-) I'll fix!

Yours,
Linus Walleij


More information about the devicetree-discuss mailing list