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

Commit 8468949c authored by Jingoo Han's avatar Jingoo Han Committed by Thierry Reding
Browse files

pwm: pxa: Use of_match_ptr()



Use of_match_ptr(), because of_match_ptr() returns NULL pointer
when CONFIG_OF is disabled.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 4407b6d2
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -140,8 +140,6 @@ static struct of_device_id pwm_of_match[] = {
	{ }
};
MODULE_DEVICE_TABLE(of, pwm_of_match);
#else
#define pwm_of_match NULL
#endif

static const struct platform_device_id *pxa_pwm_get_id_dt(struct device *dev)
@@ -228,7 +226,7 @@ static struct platform_driver pwm_driver = {
	.driver		= {
		.name	= "pxa25x-pwm",
		.owner	= THIS_MODULE,
		.of_match_table = pwm_of_match,
		.of_match_table = of_match_ptr(pwm_of_match),
	},
	.probe		= pwm_probe,
	.remove		= pwm_remove,