• andrzej zaborowski's avatar
    ARM: OMAP: Convert gpio-switch to platform_driver · 6433b741
    andrzej zaborowski authored
    Converts the gpio-switch driver to platform_driver to avoid bad cast
    which occurs because the bus type is set to platform bus. Also
    silences the following warnings:
    
    arch/arm/plat-omap/gpio-switch.c:292: warning: ignoring return value
    of 'device_create_file', declared with attribute warn_unused_result
    arch/arm/plat-omap/gpio-switch.c:293: warning: ignoring return value
    of 'device_create_file', declared with attribute warn_unused_result
    arch/arm/plat-omap/gpio-switch.c:294: warning: ignoring return value
    of 'device_create_file', declared with attribute warn_unused_result
    Signed-off-by: default avatarAndrzej Zaborowski <balrog@zabor.org>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    6433b741
gpio-switch.c 12.3 KB