1
0
Fork 0

Revert "pwm: pxa: Use of_match_ptr()"

This reverts commit 8468949cdd.

The OF match table dummy for non-OF configurations cannot be removed
because it is still used by the pxa_pwm_get_id_dt() function.

Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
hifive-unleashed-5.1
Thierry Reding 2014-04-01 14:00:52 +02:00
parent d16a5aa9e8
commit f409cd3833
1 changed files with 3 additions and 1 deletions

View File

@ -140,6 +140,8 @@ 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)
@ -226,7 +228,7 @@ static struct platform_driver pwm_driver = {
.driver = {
.name = "pxa25x-pwm",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(pwm_of_match),
.of_match_table = pwm_of_match,
},
.probe = pwm_probe,
.remove = pwm_remove,