[PATCH 03/10] net: stmmac: Use platform data tied with compatible strings

Chen-Yu Tsai wens at csie.org
Fri Dec 6 21:13:44 EST 2013


On Sat, Dec 7, 2013 at 5:26 AM, David Miller <davem at davemloft.net> wrote:
> From: Chen-Yu Tsai <wens at csie.org>
> Date: Sat,  7 Dec 2013 01:29:36 +0800
>
>> +     device = of_match_device(stmmac_dt_ids, &pdev->dev);
>> +     if (!device)
>> +             return -ENODEV;
>> +
>> +     if (device->data)
>> +         memcpy(plat, device->data, sizeof(*plat));
>> +
>
> Don't invent your own indentation using spaces, this memcpy()
> call is not indented properly, it should be two TABs.

Noted. Will fix.



More information about the linux-arm-kernel mailing list