Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6509f7b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: bgcom: free the allocated resources on device shutdown"

parents 1e244b99 c646c9c5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1035,6 +1035,11 @@ static int bg_spi_remove(struct spi_device *spi)
	return 0;
}

static void bg_spi_shutdown(struct spi_device *spi)
{
	bg_spi_remove(spi);
}

static int bgcom_pm_suspend(struct device *dev)
{
	uint32_t cmnd_reg = 0;
@@ -1089,6 +1094,7 @@ static struct spi_driver bg_spi_driver = {
	},
	.probe = bg_spi_probe,
	.remove = bg_spi_remove,
	.shutdown = bg_spi_shutdown,
};

module_spi_driver(bg_spi_driver);