Commit bd247acb authored by Sachin Kamat's avatar Sachin Kamat Committed by David Woodhouse

mtd: sh_flctl: 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 avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent b57d43ff
...@@ -1081,7 +1081,6 @@ static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev) ...@@ -1081,7 +1081,6 @@ static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev)
return pdata; return pdata;
} }
#else /* CONFIG_OF */ #else /* CONFIG_OF */
#define of_flctl_match NULL
static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev) static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev)
{ {
return NULL; return NULL;
...@@ -1219,7 +1218,7 @@ static struct platform_driver flctl_driver = { ...@@ -1219,7 +1218,7 @@ static struct platform_driver flctl_driver = {
.driver = { .driver = {
.name = "sh_flctl", .name = "sh_flctl",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.of_match_table = of_flctl_match, .of_match_table = of_match_ptr(of_flctl_match),
}, },
}; };
......
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