]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mmc: sdhci-acpi: Remove not so useful error message
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 1 Nov 2024 10:11:33 +0000 (12:11 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 18 Dec 2024 14:42:35 +0000 (15:42 +0100)
First of all, this error message is just informative and doesn't prevent
driver from going on. Second, the ioremap() on many architectures just
works on page size granularity, which is higher than 256 bytes. Last,
but not lease, this is an impediment for furhter cleanups, hence remove
it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Message-ID: <20241101101441.3518612-4-andriy.shevchenko@linux.intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-acpi.c

index d1ce9193ece934a8dd4d82a5e0585ed220297e2c..d577c6515b86bc06edc12d57c196e8f417b07fc3 100644 (file)
@@ -849,9 +849,6 @@ static int sdhci_acpi_probe(struct platform_device *pdev)
                return -ENOMEM;
 
        len = resource_size(iomem);
-       if (len < 0x100)
-               dev_err(dev, "Invalid iomem size!\n");
-
        if (!devm_request_mem_region(dev, iomem->start, len, dev_name(dev)))
                return -ENOMEM;