ARM: s3c24xx: Remove empty gta02_pmu children probe
authorKrzysztof Kozlowski <krzk@kernel.org>
Mon, 13 Aug 2018 15:13:10 +0000 (17:13 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Thu, 30 Aug 2018 17:51:43 +0000 (19:51 +0200)
commitb2a13da505e8614f55dc4abb6e2067261be35a55
treeb89cdb496c268746c8def94a494a30f1730eab06
parente0b35c1ab5ac5f0453d1093770e119bd8d63d85c
ARM: s3c24xx: Remove empty gta02_pmu children probe

Since commit 67e67df8da72 ("gta02: Use pcf50633 backlight driver instead
of platform backlight driver.") the list of gta02 pmu children is empty
therefore looping through it and adding devices is a no-op.

This also fixes the GCC v8.1 W=1 warning:

    arch/arm/mach-s3c24xx/mach-gta02.c: In function 'gta02_pmu_attach_child_devices':
    arch/arm/mach-s3c24xx/mach-gta02.c:538:16: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
      for (n = 0; n < ARRAY_SIZE(gta02_devices_pmu_children); n++)
                    ^

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-s3c24xx/mach-gta02.c