Andy Shevchenko 6c857ccf4e mmc: mmc_spi: Set up polling even if voltage-ranges is not present
When voltage-ranges property is not present the driver assumes that
it is 3.3v (3.2v..3.4v). But at the same time it disallows polling.

Fix that by dropping the comparison to 0 when no property is provided.

While at it, mark voltage-ranges property optional as it was initially.

Fixes: 9c43df57910b ("mmc_spi: Add support for OpenFirmware bindings")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210419112459.25241-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2021-04-23 09:29:49 +02:00
..
2021-02-08 13:00:31 +01:00
2021-02-15 10:43:23 +01:00
2021-02-15 10:43:23 +01:00
2021-02-08 13:00:31 +01:00
2021-02-08 13:00:31 +01:00
2019-07-11 18:11:21 -07:00
2021-02-08 13:00:31 +01:00
2021-02-08 13:00:31 +01:00