Commit a6867f93 authored by Xinghai Cen's avatar Xinghai Cen
Browse files

Revert "spi: Add verification for the max_frequency provided by the firmware"

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IAMWY8


CVE: NA

-------------------------------------------------

This reverts commit 8c9aeaf8.
Fixes: 8c9aeaf8 ("spi: Add verification for the max_frequency provided by the firmware")
Signed-off-by: default avatarlujunhua <lujunhua7@h-partners.com>
parent 02994a9b
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -481,12 +481,6 @@ static int hisi_spi_probe(struct platform_device *pdev)
		return -EINVAL;
	}

	if (host->max_speed_hz == 0) {
		dev_err(dev, "invalid max SPI clocking speed, max-freq=%u\n",
				host->max_speed_hz);
		return -EINVAL;
	}

	ret = device_property_read_u16(dev, "num-cs",
					&host->num_chipselect);
	if (ret)