• Nobuhiro Iwamatsu's avatar
    sh: sh7750: Fix incompatible pointer type · 0ce08870
    Nobuhiro Iwamatsu authored
    It is necessary to set array of struct platform_device in
    early_platform_add_devices().
    
    arch/sh/kernel/cpu/sh4/setup-sh7750.c: In function ‘plat_early_device_setup’:
    arch/sh/kernel/cpu/sh4/setup-sh7750.c:260: warning: passing argument 1 of ‘early_platform_add_devices’ from incompatible pointer type
    include/linux/platform_device.h:159: note: expected ‘struct platform_device **’ but argument is of type ‘struct platform_device *’
    arch/sh/kernel/cpu/sh4/setup-sh7750.c:262: warning: passing argument 1 of ‘early_platform_add_devices’ from incompatible pointer type
    include/linux/platform_device.h:159: note: expected ‘struct platform_device **’ but argument is of type ‘struct platform_device *’
    arch/sh/kernel/cpu/sh4/setup-sh7750.c:263: warning: passing argument 1 of ‘early_platform_add_devices’ from incompatible pointer type
    include/linux/platform_device.h:159: note: expected ‘struct platform_device **’ but argument is of type ‘struct platform_device *’
    Signed-off-by: default avatarNobuhiro Iwamatsu <iwamatsu@nigauri.org>
    Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
    0ce08870
setup-sh7750.c 11.3 KB