hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/mmc/host/sdhci-pltfm.h
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright 2010 MontaVista Software, LLC.
34 *
45 * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 */
107
118 #ifndef _DRIVERS_MMC_SDHCI_PLTFM_H
....@@ -28,7 +25,7 @@
2825 unsigned int clock;
2926 u16 xfer_mode_shadow;
3027
31
- unsigned long private[0] ____cacheline_aligned;
28
+ unsigned long private[] ____cacheline_aligned;
3229 };
3330
3431 #ifdef CONFIG_MMC_SDHCI_BIG_ENDIAN_32BIT_BYTE_SWAPPER
....@@ -90,7 +87,12 @@
9087 }
9188 #endif /* CONFIG_MMC_SDHCI_BIG_ENDIAN_32BIT_BYTE_SWAPPER */
9289
93
-extern void sdhci_get_of_property(struct platform_device *pdev);
90
+void sdhci_get_property(struct platform_device *pdev);
91
+
92
+static inline void sdhci_get_of_property(struct platform_device *pdev)
93
+{
94
+ return sdhci_get_property(pdev);
95
+}
9496
9597 extern struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
9698 const struct sdhci_pltfm_data *pdata,
....@@ -109,8 +111,13 @@
109111 return host->private;
110112 }
111113
114
+extern const struct dev_pm_ops sdhci_pltfm_pmops;
115
+#ifdef CONFIG_PM_SLEEP
112116 int sdhci_pltfm_suspend(struct device *dev);
113117 int sdhci_pltfm_resume(struct device *dev);
114
-extern const struct dev_pm_ops sdhci_pltfm_pmops;
118
+#else
119
+static inline int sdhci_pltfm_suspend(struct device *dev) { return 0; }
120
+static inline int sdhci_pltfm_resume(struct device *dev) { return 0; }
121
+#endif
115122
116123 #endif /* _DRIVERS_MMC_SDHCI_PLTFM_H */