Skip to content

Commit bd247ac

Browse files
Sachin KamatDavid Woodhouse
authored andcommitted
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: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
1 parent b57d43f commit bd247ac

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/mtd/nand/sh_flctl.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,6 @@ static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev)
10811081
return pdata;
10821082
}
10831083
#else /* CONFIG_OF */
1084-
#define of_flctl_match NULL
10851084
static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev)
10861085
{
10871086
return NULL;
@@ -1219,7 +1218,7 @@ static struct platform_driver flctl_driver = {
12191218
.driver = {
12201219
.name = "sh_flctl",
12211220
.owner = THIS_MODULE,
1222-
.of_match_table = of_flctl_match,
1221+
.of_match_table = of_match_ptr(of_flctl_match),
12231222
},
12241223
};
12251224

0 commit comments

Comments
 (0)