mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
spi: cadence-quadspi: drop redundant match data lookup
Use the OF match data stored at probe instead of looking it up again on driver unbind. Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://patch.msgid.link/20260421125354.1534871-7-johan@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
edbaae583e
commit
37c9dfa385
|
|
@ -2001,13 +2001,10 @@ static int cqspi_probe(struct platform_device *pdev)
|
|||
|
||||
static void cqspi_remove(struct platform_device *pdev)
|
||||
{
|
||||
const struct cqspi_driver_platdata *ddata;
|
||||
struct cqspi_st *cqspi = platform_get_drvdata(pdev);
|
||||
struct device *dev = &pdev->dev;
|
||||
const struct cqspi_driver_platdata *ddata = cqspi->ddata;
|
||||
int ret = 0;
|
||||
|
||||
ddata = of_device_get_match_data(dev);
|
||||
|
||||
spi_unregister_controller(cqspi->host);
|
||||
|
||||
refcount_set(&cqspi->refcount, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user