mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
mmc: sdhci-iproc: fix oops in sdhci_iproc_writew
The driver co-allocates sdhci_iproc_host with sdhci_pltfm_host and so to access it we need to use sdhci_pltfm_priv() and not pltfm_host->priv. Signed-off-by: Dmitry Torokhov <dtor@chromium.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
04e079cf6b
commit
b1ddaa3d06
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ static inline void sdhci_iproc_writel(struct sdhci_host *host, u32 val, int reg)
|
||||||
static void sdhci_iproc_writew(struct sdhci_host *host, u16 val, int reg)
|
static void sdhci_iproc_writew(struct sdhci_host *host, u16 val, int reg)
|
||||||
{
|
{
|
||||||
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
|
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
|
||||||
struct sdhci_iproc_host *iproc_host = pltfm_host->priv;
|
struct sdhci_iproc_host *iproc_host = sdhci_pltfm_priv(pltfm_host);
|
||||||
u32 word_shift = REG_OFFSET_IN_BITS(reg);
|
u32 word_shift = REG_OFFSET_IN_BITS(reg);
|
||||||
u32 mask = 0xffff << word_shift;
|
u32 mask = 0xffff << word_shift;
|
||||||
u32 oldval, newval;
|
u32 oldval, newval;
|
||||||
|
|
Loading…
Reference in a new issue