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-mpc52xx.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-mpc52xx.c')
| -rw-r--r-- | drivers/spi/spi-mpc52xx.c | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/spi/spi-mpc52xx.c b/drivers/spi/spi-mpc52xx.c index 7b64e64c65cf..ab7df5f64342 100644 --- a/drivers/spi/spi-mpc52xx.c +++ b/drivers/spi/spi-mpc52xx.c @@ -101,7 +101,7 @@ static void mpc52xx_spi_chipsel(struct mpc52xx_spi *ms, int value)  	int cs;  	if (ms->gpio_cs_count > 0) { -		cs = ms->message->spi->chip_select; +		cs = spi_get_chipselect(ms->message->spi, 0);  		gpiod_set_value(ms->gpio_cs[cs], value);  	} else {  		out_8(ms->regs + SPI_PORTDATA, value ? 0 : 0x08); @@ -513,7 +513,7 @@ static int mpc52xx_spi_probe(struct platform_device *op)  	return rc;  } -static int mpc52xx_spi_remove(struct platform_device *op) +static void mpc52xx_spi_remove(struct platform_device *op)  {  	struct spi_master *master = spi_master_get(platform_get_drvdata(op));  	struct mpc52xx_spi *ms = spi_master_get_devdata(master); @@ -529,8 +529,6 @@ static int mpc52xx_spi_remove(struct platform_device *op)  	spi_unregister_master(master);  	iounmap(ms->regs);  	spi_master_put(master); - -	return 0;  }  static const struct of_device_id mpc52xx_spi_match[] = { @@ -545,6 +543,6 @@ static struct platform_driver mpc52xx_spi_of_driver = {  		.of_match_table = mpc52xx_spi_match,  	},  	.probe = mpc52xx_spi_probe, -	.remove = mpc52xx_spi_remove, +	.remove_new = mpc52xx_spi_remove,  };  module_platform_driver(mpc52xx_spi_of_driver);  |