diff options
| author | Masahiro Yamada <[email protected]> | 2020-04-23 00:34:01 +0900 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2020-05-28 11:21:01 +0200 |
| commit | ca2d13ec6ee9c3d7edc6563dc753f891521f791b (patch) | |
| tree | 11f5b0d4d8f963833f0c934c910e2ebfecafa062 /include/linux | |
| parent | 74f6bdb864f2235effa3af587c6c90c6eb5f21d3 (diff) | |
mmc: sdhci-of-at91: make MMC_SDHCI_OF_AT91 depend on HAVE_CLK
If sdhci-of-at91.c is compiled without CONFIG_HAVE_CLK, the line
caps1 |= FIELD_PREP(SDHCI_CLOCK_MUL_MASK, clk_mul);
... emits "FIELD_PREP: value too large for the field" warning.
The compiler seems to decide clk_mul is constant (unsigned int)-1,
because clk_get_rate() returns 0 when CONFIG_HAVE_CLK is disabled.
Add HAVE_CLK to the depenency since this driver does not work without
the clock APIs anyway.
Reported-by: Randy Dunlap <[email protected]>
Suggested-by: Adrian Hunter <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Acked-by: Randy Dunlap <[email protected]> # build-tested
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions