diff options
Diffstat (limited to 'drivers/spi/spi-altera.c')
-rw-r--r-- | drivers/spi/spi-altera.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c index c00d00e96ee4..f1fec2a19d10 100644 --- a/drivers/spi/spi-altera.c +++ b/drivers/spi/spi-altera.c | |||
@@ -307,8 +307,6 @@ static const struct of_device_id altera_spi_match[] = { | |||
307 | {}, | 307 | {}, |
308 | }; | 308 | }; |
309 | MODULE_DEVICE_TABLE(of, altera_spi_match); | 309 | MODULE_DEVICE_TABLE(of, altera_spi_match); |
310 | #else /* CONFIG_OF */ | ||
311 | #define altera_spi_match NULL | ||
312 | #endif /* CONFIG_OF */ | 310 | #endif /* CONFIG_OF */ |
313 | 311 | ||
314 | static struct platform_driver altera_spi_driver = { | 312 | static struct platform_driver altera_spi_driver = { |
@@ -318,7 +316,7 @@ static struct platform_driver altera_spi_driver = { | |||
318 | .name = DRV_NAME, | 316 | .name = DRV_NAME, |
319 | .owner = THIS_MODULE, | 317 | .owner = THIS_MODULE, |
320 | .pm = NULL, | 318 | .pm = NULL, |
321 | .of_match_table = altera_spi_match, | 319 | .of_match_table = of_match_ptr(altera_spi_match), |
322 | }, | 320 | }, |
323 | }; | 321 | }; |
324 | module_platform_driver(altera_spi_driver); | 322 | module_platform_driver(altera_spi_driver); |