diff mbox

[2/3] mmc: sdhci-bcm-kona: Remove redundant use of_match_ptr

Message ID 1373263914-18050-2-git-send-email-sachin.kamat@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Sachin Kamat July 8, 2013, 6:11 a.m. UTC
sdhci_bcm_kona_of_match structure is always compiled in. Hence
of_match_ptr macro is not necessary.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/mmc/host/sdhci-bcm-kona.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Christian Daudt July 19, 2013, 8:31 p.m. UTC | #1
On 13-07-07 11:11 PM, Sachin Kamat wrote:
> sdhci_bcm_kona_of_match structure is always compiled in. Hence
> of_match_ptr macro is not necessary.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>   drivers/mmc/host/sdhci-bcm-kona.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/sdhci-bcm-kona.c b/drivers/mmc/host/sdhci-bcm-kona.c
> index bca6d55..d7a44ae 100644
> --- a/drivers/mmc/host/sdhci-bcm-kona.c
> +++ b/drivers/mmc/host/sdhci-bcm-kona.c
> @@ -335,7 +335,7 @@ static struct platform_driver sdhci_bcm_kona_driver = {
>   		.name	= "sdhci-kona",
>   		.owner	= THIS_MODULE,
>   		.pm	= SDHCI_PLTFM_PMOPS,
> -		.of_match_table = of_match_ptr(sdhci_bcm_kona_of_match),
> +		.of_match_table = sdhci_bcm_kona_of_match,
>   	},
>   	.probe		= sdhci_bcm_kona_probe,
>   	.remove		= __exit_p(sdhci_bcm_kona_remove),
Acked-by: Christian Daudt <csd@broadcom.com>

  thanks,
    csd

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/mmc/host/sdhci-bcm-kona.c b/drivers/mmc/host/sdhci-bcm-kona.c
index bca6d55..d7a44ae 100644
--- a/drivers/mmc/host/sdhci-bcm-kona.c
+++ b/drivers/mmc/host/sdhci-bcm-kona.c
@@ -335,7 +335,7 @@  static struct platform_driver sdhci_bcm_kona_driver = {
 		.name	= "sdhci-kona",
 		.owner	= THIS_MODULE,
 		.pm	= SDHCI_PLTFM_PMOPS,
-		.of_match_table = of_match_ptr(sdhci_bcm_kona_of_match),
+		.of_match_table = sdhci_bcm_kona_of_match,
 	},
 	.probe		= sdhci_bcm_kona_probe,
 	.remove		= __exit_p(sdhci_bcm_kona_remove),