Commit 620fd85c0b650b4061ba5c989276d58c27280be2
1 parent
12a510e23f
Exists in
smarc_8mq_lf_v2020.04
and in
14 other branches
mmc: uniphier: Drop useless check
Drop useless check in matsu_sd_{read,write}q(), this is only ever
called to read the data from FIFO and only when 64bit variant of
the block is used anyway.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Showing 1 changed file with 2 additions and 8 deletions Side-by-side Diff
drivers/mmc/matsushita-common.c
| ... | ... | @@ -23,19 +23,13 @@ |
| 23 | 23 | |
| 24 | 24 | static u64 matsu_sd_readq(struct matsu_sd_priv *priv, unsigned int reg) |
| 25 | 25 | { |
| 26 | - if (priv->caps & MATSU_SD_CAP_64BIT) | |
| 27 | - return readq(priv->regbase + (reg << 1)); | |
| 28 | - else | |
| 29 | - return readq(priv->regbase + reg); | |
| 26 | + return readq(priv->regbase + (reg << 1)); | |
| 30 | 27 | } |
| 31 | 28 | |
| 32 | 29 | static void matsu_sd_writeq(struct matsu_sd_priv *priv, |
| 33 | 30 | u64 val, unsigned int reg) |
| 34 | 31 | { |
| 35 | - if (priv->caps & MATSU_SD_CAP_64BIT) | |
| 36 | - writeq(val, priv->regbase + (reg << 1)); | |
| 37 | - else | |
| 38 | - writeq(val, priv->regbase + reg); | |
| 32 | + writeq(val, priv->regbase + (reg << 1)); | |
| 39 | 33 | } |
| 40 | 34 | |
| 41 | 35 | static u32 matsu_sd_readl(struct matsu_sd_priv *priv, unsigned int reg) |