]> git.baikalelectronics.ru Git - kernel.git/commit
iio: gyro: mpu3050: remove duplicate initializer
authorArnd Bergmann <arnd@arndb.de>
Tue, 8 Nov 2016 13:59:29 +0000 (14:59 +0100)
committerJonathan Cameron <jic23@kernel.org>
Tue, 8 Nov 2016 20:28:25 +0000 (20:28 +0000)
commit228f6b66bb79826af590b2c27ce6e115a4c75594
tree627a9f605684418d3f42fc9a8d38f5d69afeed8e
parent49d29c3210fc2aa8613c19059fecd958c7e4578c
iio: gyro: mpu3050: remove duplicate initializer

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: e1d988b02d9d ("iio: gyro: Add driver for the MPU-3050 gyroscope")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/gyro/mpu3050-core.c