]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: sdhci-s3c: fix broken compilation for non-Exynos SoCs
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 9 Mar 2012 13:44:27 +0000 (14:44 +0100)
committerChris Ball <cjb@laptop.org>
Sun, 1 Apr 2012 03:32:15 +0000 (23:32 -0400)
exynos4_sdhci_drv_data structure is not available on non-Exynos builds,
that's why EXYNOS4_SDHCI_DRV_DATA macro has been introduced. This patch
fixes commit 67819656 'mmc: sdhci-s3c: Add device tree support' to use
that macro. This fixes broken build for pre-Exynos SoCs.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-s3c.c

index 5f282965c0af931c368424f2c23d54554e839440..0e2b9e2333a0340a43b2c07f47e46db09a76e056 100644 (file)
@@ -864,7 +864,7 @@ MODULE_DEVICE_TABLE(platform, sdhci_s3c_driver_ids);
 static const struct of_device_id sdhci_s3c_dt_match[] = {
        { .compatible = "samsung,s3c6410-sdhci", },
        { .compatible = "samsung,exynos4210-sdhci",
-               .data = &exynos4_sdhci_drv_data },
+               .data = EXYNOS4_SDHCI_DRV_DATA },
        {},
 };
 MODULE_DEVICE_TABLE(of, sdhci_s3c_dt_match);