| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright 2010 MontaVista Software, LLC. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | |
|---|
| 11 | 8 | #ifndef _DRIVERS_MMC_SDHCI_PLTFM_H |
|---|
| .. | .. |
|---|
| 28 | 25 | unsigned int clock; |
|---|
| 29 | 26 | u16 xfer_mode_shadow; |
|---|
| 30 | 27 | |
|---|
| 31 | | - unsigned long private[0] ____cacheline_aligned; |
|---|
| 28 | + unsigned long private[] ____cacheline_aligned; |
|---|
| 32 | 29 | }; |
|---|
| 33 | 30 | |
|---|
| 34 | 31 | #ifdef CONFIG_MMC_SDHCI_BIG_ENDIAN_32BIT_BYTE_SWAPPER |
|---|
| .. | .. |
|---|
| 90 | 87 | } |
|---|
| 91 | 88 | #endif /* CONFIG_MMC_SDHCI_BIG_ENDIAN_32BIT_BYTE_SWAPPER */ |
|---|
| 92 | 89 | |
|---|
| 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 | +} |
|---|
| 94 | 96 | |
|---|
| 95 | 97 | extern struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev, |
|---|
| 96 | 98 | const struct sdhci_pltfm_data *pdata, |
|---|
| .. | .. |
|---|
| 109 | 111 | return host->private; |
|---|
| 110 | 112 | } |
|---|
| 111 | 113 | |
|---|
| 114 | +extern const struct dev_pm_ops sdhci_pltfm_pmops; |
|---|
| 115 | +#ifdef CONFIG_PM_SLEEP |
|---|
| 112 | 116 | int sdhci_pltfm_suspend(struct device *dev); |
|---|
| 113 | 117 | 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 |
|---|
| 115 | 122 | |
|---|
| 116 | 123 | #endif /* _DRIVERS_MMC_SDHCI_PLTFM_H */ |
|---|