Skip to content

Commit abcfaf2

Browse files
AxelLinbroonie
authored andcommitted
regulator: fixed: Use of_match_ptr() for of_match_table entry
Use the new of_match_ptr() macro for the of_match_table pointer entry to avoid having to #define match NULL. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent 133d401 commit abcfaf2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎drivers/regulator/fixed.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,6 @@ static const struct of_device_id fixed_of_match[] __devinitconst = {
296296
{},
297297
};
298298
MODULE_DEVICE_TABLE(of, fixed_of_match);
299-
#else
300-
#define fixed_of_match NULL
301299
#endif
302300

303301
static struct platform_driver regulator_fixed_voltage_driver = {
@@ -306,7 +304,7 @@ static struct platform_driver regulator_fixed_voltage_driver = {
306304
.driver = {
307305
.name = "reg-fixed-voltage",
308306
.owner = THIS_MODULE,
309-
.of_match_table = fixed_of_match,
307+
.of_match_table = of_match_ptr(fixed_of_match),
310308
},
311309
};
312310

0 commit comments

Comments
 (0)