mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 04:26:45 +00:00
ieee802154: at86rf230: Remove empty suspend/resume callbacks
There is no need to implement empty suspend/resume callbacks if there is nothing to do during suspend/resume. The drivers will behave the same with no callbacks or empty callbacks during suspend/resume. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f85b02c2bd
commit
c14dd2680b
1 changed files with 0 additions and 12 deletions
|
@ -751,16 +751,6 @@ static int at86rf230_hw_init(struct at86rf230_local *lp)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int at86rf230_suspend(struct spi_device *spi, pm_message_t message)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int at86rf230_resume(struct spi_device *spi)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int at86rf230_fill_data(struct spi_device *spi)
|
static int at86rf230_fill_data(struct spi_device *spi)
|
||||||
{
|
{
|
||||||
struct at86rf230_local *lp = spi_get_drvdata(spi);
|
struct at86rf230_local *lp = spi_get_drvdata(spi);
|
||||||
|
@ -948,8 +938,6 @@ static struct spi_driver at86rf230_driver = {
|
||||||
},
|
},
|
||||||
.probe = at86rf230_probe,
|
.probe = at86rf230_probe,
|
||||||
.remove = at86rf230_remove,
|
.remove = at86rf230_remove,
|
||||||
.suspend = at86rf230_suspend,
|
|
||||||
.resume = at86rf230_resume,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
module_spi_driver(at86rf230_driver);
|
module_spi_driver(at86rf230_driver);
|
||||||
|
|
Loading…
Reference in a new issue