leds: bcm6358: Use devm_platform_ioremap_resource() in bcm6358_leds_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 20 Sep 2019 12:44:06 +0000 (14:44 +0200)
committerPavel <pavel@ucw.cz>
Sun, 3 Nov 2019 16:37:24 +0000 (17:37 +0100)
commit8b4423d6c5e6515bf6ad7c6c51dfb0a4a95ec606
treef85a5f5832736d9b41339d03cc82163f44feb401
parentbe9f18eef60197a0da8bc514f7bb9512dbc04c48
leds: bcm6358: Use devm_platform_ioremap_resource() in bcm6358_leds_probe()

Simplify this function implementation by using a known wrapper function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-bcm6358.c