wifi: fix 1.57 wifi driver make fail issue
authorRongjun Chen <rongjun.chen@amlogic.com>
Fri, 1 Sep 2017 02:48:50 +0000 (10:48 +0800)
committerRongjun Chen <rongjun.chen@amlogic.com>
Fri, 1 Sep 2017 02:48:50 +0000 (10:48 +0800)
Change-Id: I0cb8e593aabeafd565b1b2b5f6fae8f65811ae65

bcmdhd.1.579.77.41.1.cn/bcmsdh_sdmmc.c

index e08a3a9bf7c3043b49fd0743b35c577da649f500..8cbf18a132b76e9b21ad61a3e0a918f191cc3a95 100644 (file)
@@ -57,6 +57,18 @@ mmc_host_clk_release(struct mmc_host *host)
 #include <drivers/mmc/core/host.h>
 #else
 #include <linux/mmc/host.h>
+static inline void mmc_host_clk_hold(struct mmc_host *host)
+{
+}
+
+static inline void mmc_host_clk_release(struct mmc_host *host)
+{
+}
+
+static inline unsigned int mmc_host_clk_rate(struct mmc_host *host)
+{
+        return host->ios.clock;
+}
 #endif /* (LINUX_VERSION_CODE <= KERNEL_VERSION(3, 0, 0)) */
 #include <linux/mmc/card.h>
 #include <linux/mmc/sdio_func.h>