Commit 59d22309 authored by Axel Lin's avatar Axel Lin Committed by Ulf Hansson

mmc: sdhci-{pxav2,pxav3}: Use of_match_ptr() macro

This eliminates having an #ifdef returning NULL for the case
when OF is disabled.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarJisheng Zhang <jszhang@marvell.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 308f3f8d
...@@ -252,9 +252,7 @@ static int sdhci_pxav2_remove(struct platform_device *pdev) ...@@ -252,9 +252,7 @@ static int sdhci_pxav2_remove(struct platform_device *pdev)
static struct platform_driver sdhci_pxav2_driver = { static struct platform_driver sdhci_pxav2_driver = {
.driver = { .driver = {
.name = "sdhci-pxav2", .name = "sdhci-pxav2",
#ifdef CONFIG_OF .of_match_table = of_match_ptr(sdhci_pxav2_of_match),
.of_match_table = sdhci_pxav2_of_match,
#endif
.pm = SDHCI_PLTFM_PMOPS, .pm = SDHCI_PLTFM_PMOPS,
}, },
.probe = sdhci_pxav2_probe, .probe = sdhci_pxav2_probe,
......
...@@ -578,9 +578,7 @@ static const struct dev_pm_ops sdhci_pxav3_pmops = { ...@@ -578,9 +578,7 @@ static const struct dev_pm_ops sdhci_pxav3_pmops = {
static struct platform_driver sdhci_pxav3_driver = { static struct platform_driver sdhci_pxav3_driver = {
.driver = { .driver = {
.name = "sdhci-pxav3", .name = "sdhci-pxav3",
#ifdef CONFIG_OF .of_match_table = of_match_ptr(sdhci_pxav3_of_match),
.of_match_table = sdhci_pxav3_of_match,
#endif
.pm = SDHCI_PXAV3_PMOPS, .pm = SDHCI_PXAV3_PMOPS,
}, },
.probe = sdhci_pxav3_probe, .probe = sdhci_pxav3_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment