Re: [PATCH 1/2] iio: gyro: mpu3050: remove duplicate initializer

From: Linus Walleij
Date: Tue Nov 08 2016 - 10:40:03 EST


On Tue, Nov 8, 2016 at 2:59 PM, Arnd Bergmann <arnd@xxxxxxxx> wrote:

> The newly added mpu3050 driver has two initializations for the
> module owner, which causes a warning for 'make W=1':
>
> include/linux/export.h:37:21: error: initialized field overwritten [-Werror=override-init]
> drivers/iio/gyro/mpu3050-core.c:749:19: note: in expansion of macro 'THIS_MODULE'
>
> This removes one of the two.
>
> Fixes: 3904b28efb2c ("iio: gyro: Add driver for the MPU-3050 gyroscope")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij