Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ebcebdd authored by Tobias Klauser's avatar Tobias Klauser Committed by Bryan Wu
Browse files

leds: leds-gpio: use of_match_ptr()



Instead of having to define the match table to NULL if CONFIG_OF isn't
set, use the of_match_ptr() macro which will do this for us.

Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarBryan Wu <bryan.wu@canonical.com>
parent d23a22a7
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -228,7 +228,6 @@ static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_dev
{
{
	return NULL;
	return NULL;
}
}
#define of_gpio_leds_match NULL
#endif /* CONFIG_OF_GPIO */
#endif /* CONFIG_OF_GPIO */




@@ -287,7 +286,7 @@ static struct platform_driver gpio_led_driver = {
	.driver		= {
	.driver		= {
		.name	= "leds-gpio",
		.name	= "leds-gpio",
		.owner	= THIS_MODULE,
		.owner	= THIS_MODULE,
		.of_match_table = of_gpio_leds_match,
		.of_match_table = of_match_ptr(of_gpio_leds_match),
	},
	},
};
};