diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/spi/spi-meson-spicc.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/spi/spi-meson-spicc.c')
| -rw-r--r-- | drivers/spi/spi-meson-spicc.c | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/spi/spi-meson-spicc.c b/drivers/spi/spi-meson-spicc.c index d47f2623a60f..141562c882f1 100644 --- a/drivers/spi/spi-meson-spicc.c +++ b/drivers/spi/spi-meson-spicc.c @@ -505,7 +505,7 @@ static int meson_spicc_prepare_message(struct spi_master *master,  		conf |= FIELD_PREP(SPICC_DRCTL_MASK, SPICC_DRCTL_IGNORE);  	/* Select CS */ -	conf |= FIELD_PREP(SPICC_CS_MASK, spi->chip_select); +	conf |= FIELD_PREP(SPICC_CS_MASK, spi_get_chipselect(spi, 0));  	/* Default 8bit word */  	conf |= FIELD_PREP(SPICC_BITLENGTH_MASK, 8 - 1); @@ -910,7 +910,7 @@ out_master:  	return ret;  } -static int meson_spicc_remove(struct platform_device *pdev) +static void meson_spicc_remove(struct platform_device *pdev)  {  	struct meson_spicc_device *spicc = platform_get_drvdata(pdev); @@ -921,8 +921,6 @@ static int meson_spicc_remove(struct platform_device *pdev)  	clk_disable_unprepare(spicc->pclk);  	spi_master_put(spicc->master); - -	return 0;  }  static const struct meson_spicc_data meson_spicc_gx_data = { @@ -967,7 +965,7 @@ MODULE_DEVICE_TABLE(of, meson_spicc_of_match);  static struct platform_driver meson_spicc_driver = {  	.probe   = meson_spicc_probe, -	.remove  = meson_spicc_remove, +	.remove_new = meson_spicc_remove,  	.driver  = {  		.name = "meson-spicc",  		.of_match_table = of_match_ptr(meson_spicc_of_match),  |