• Javier Martinez Canillas's avatar
    Input: migor-ts - fix error for modular build · 8f4decc3
    Javier Martinez Canillas authored
    There is a typo in the driver for the I2C device table that is passed to
    the MODULE_DEVICE_TABLE() macro, this leads to the following build error:
    
      CC [M]  drivers/input/touchscreen//migor_ts.o
    drivers/input/touchscreen//migor_ts.c:233:21: error: 'migor_ts' undeclared here (not in a function)
     MODULE_DEVICE_TABLE(i2c, migor_ts);
                         ^
    drivers/input/touchscreen//migor_ts.c:233:31: error: '__mod_i2c__migor_ts_device_table' aliased to undefined symbol 'migor_ts'
     MODULE_DEVICE_TABLE(i2c, migor_ts);
                                   ^
    scripts/Makefile.build:295: recipe for target 'drivers/input/touchscreen//migor_ts.o' failed
    make[1]: *** [drivers/input/touchscreen//migor_ts.o] Error 1
    Makefile:1446: recipe for target '_module_drivers/input/touchscreen/' failed
    make: *** [_module_drivers/input/touchscreen/] Error 2
    Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
    8f4decc3
migor_ts.c 6.08 KB