2020-04-29 09:50:23

by Baolin Wang

[permalink] [raw]
Subject: [PATCH] mfd: sprd: Remove unnecessary spi_bus_type setting

The spi_register_driver() will set the spi_bus_type for the spi_driver,
thus remove the redundant setting in this driver.

Signed-off-by: Baolin Wang <[email protected]>
---
drivers/mfd/sprd-sc27xx-spi.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/mfd/sprd-sc27xx-spi.c b/drivers/mfd/sprd-sc27xx-spi.c
index ebdf2f11ae28..33336cde4724 100644
--- a/drivers/mfd/sprd-sc27xx-spi.c
+++ b/drivers/mfd/sprd-sc27xx-spi.c
@@ -284,7 +284,6 @@ MODULE_DEVICE_TABLE(of, sprd_pmic_match);
static struct spi_driver sprd_pmic_driver = {
.driver = {
.name = "sc27xx-pmic",
- .bus = &spi_bus_type,
.of_match_table = sprd_pmic_match,
},
.probe = sprd_pmic_probe,
--
2.17.1


2020-05-15 10:42:10

by Lee Jones

[permalink] [raw]
Subject: Re: [PATCH] mfd: sprd: Remove unnecessary spi_bus_type setting

On Wed, 29 Apr 2020, Baolin Wang wrote:

> The spi_register_driver() will set the spi_bus_type for the spi_driver,
> thus remove the redundant setting in this driver.
>
> Signed-off-by: Baolin Wang <[email protected]>
> ---
> drivers/mfd/sprd-sc27xx-spi.c | 1 -
> 1 file changed, 1 deletion(-)

Applied, thanks.

--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog