mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
spi: cadence: Return the error code for cdns_spi_suspend and cdns_spi_resume
Return the error code for cdns_spi_suspend and cdns_spi_resume. Also fixes a comment where which claims that the error code is returned. Signed-off-by: Shubhrajyoti Datta <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
2198b7483d
commit
6fe9b67dbe
1 changed files with 3 additions and 7 deletions
|
|
@ -615,16 +615,14 @@ static int cdns_spi_remove(struct platform_device *pdev)
|
|||
* This function disables the SPI controller and
|
||||
* changes the driver state to "suspend"
|
||||
*
|
||||
* Return: Always 0
|
||||
* Return: 0 on success and error value on error
|
||||
*/
|
||||
static int __maybe_unused cdns_spi_suspend(struct device *dev)
|
||||
{
|
||||
struct platform_device *pdev = to_platform_device(dev);
|
||||
struct spi_master *master = platform_get_drvdata(pdev);
|
||||
|
||||
spi_master_suspend(master);
|
||||
|
||||
return 0;
|
||||
return spi_master_suspend(master);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -640,9 +638,7 @@ static int __maybe_unused cdns_spi_resume(struct device *dev)
|
|||
struct platform_device *pdev = to_platform_device(dev);
|
||||
struct spi_master *master = platform_get_drvdata(pdev);
|
||||
|
||||
spi_master_resume(master);
|
||||
|
||||
return 0;
|
||||
return spi_master_resume(master);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue