tty: 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 #dfine match NULL Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
@@ -568,8 +568,6 @@ static struct of_device_id ulite_of_match[] __devinitdata = {
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, ulite_of_match);
|
||||
#else /* CONFIG_OF */
|
||||
#define ulite_of_match NULL
|
||||
#endif /* CONFIG_OF */
|
||||
|
||||
static int __devinit ulite_probe(struct platform_device *pdev)
|
||||
@@ -609,7 +607,7 @@ static struct platform_driver ulite_platform_driver = {
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "uartlite",
|
||||
.of_match_table = ulite_of_match,
|
||||
.of_match_table = of_match_ptr(ulite_of_match),
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user