serial: Samsung: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
41147bfdc5
commit
905f4ba252
1 changed files with 1 additions and 3 deletions
|
@ -1729,8 +1729,6 @@ static const struct of_device_id s3c24xx_uart_dt_match[] = {
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, s3c24xx_uart_dt_match);
|
MODULE_DEVICE_TABLE(of, s3c24xx_uart_dt_match);
|
||||||
#else
|
|
||||||
#define s3c24xx_uart_dt_match NULL
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct platform_driver samsung_serial_driver = {
|
static struct platform_driver samsung_serial_driver = {
|
||||||
|
@ -1741,7 +1739,7 @@ static struct platform_driver samsung_serial_driver = {
|
||||||
.name = "samsung-uart",
|
.name = "samsung-uart",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.pm = SERIAL_SAMSUNG_PM_OPS,
|
.pm = SERIAL_SAMSUNG_PM_OPS,
|
||||||
.of_match_table = s3c24xx_uart_dt_match,
|
.of_match_table = of_match_ptr(s3c24xx_uart_dt_match),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue