Commit 691ee4ed authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

spi: spi-sh-msiof: Use of_match_ptr() macro

This eliminates having an #ifdef returning NULL for the case
when OF is disabled.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 9547acce
...@@ -764,8 +764,6 @@ static const struct of_device_id sh_msiof_match[] = { ...@@ -764,8 +764,6 @@ static const struct of_device_id sh_msiof_match[] = {
{}, {},
}; };
MODULE_DEVICE_TABLE(of, sh_msiof_match); MODULE_DEVICE_TABLE(of, sh_msiof_match);
#else
#define sh_msiof_match NULL
#endif #endif
static struct dev_pm_ops sh_msiof_spi_dev_pm_ops = { static struct dev_pm_ops sh_msiof_spi_dev_pm_ops = {
...@@ -780,7 +778,7 @@ static struct platform_driver sh_msiof_spi_drv = { ...@@ -780,7 +778,7 @@ static struct platform_driver sh_msiof_spi_drv = {
.name = "spi_sh_msiof", .name = "spi_sh_msiof",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &sh_msiof_spi_dev_pm_ops, .pm = &sh_msiof_spi_dev_pm_ops,
.of_match_table = sh_msiof_match, .of_match_table = of_match_ptr(sh_msiof_match),
}, },
}; };
module_platform_driver(sh_msiof_spi_drv); module_platform_driver(sh_msiof_spi_drv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment