ks8851: Remove unneeded PM_OPS definitions
SIMPLE_DEV_PM_OPS macro can handle !CONFIG_PM_SLEEP case nicely, so there is no need to define PM_OPS for both CONFIG_PM_SLEEP and !CONFIG_PM_SLEEP cases. Remove the unneeded definitions. Cc: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
c132cf56f1
commit
8ac2b3c0e2
@@ -1391,13 +1391,9 @@ static int ks8851_resume(struct device *dev)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static SIMPLE_DEV_PM_OPS(ks8851_pm_ops, ks8851_suspend, ks8851_resume);
|
static SIMPLE_DEV_PM_OPS(ks8851_pm_ops, ks8851_suspend, ks8851_resume);
|
||||||
#define KS8851_PM_OPS (&ks8851_pm_ops)
|
|
||||||
|
|
||||||
#else
|
|
||||||
#define KS8851_PM_OPS NULL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static int ks8851_probe(struct spi_device *spi)
|
static int ks8851_probe(struct spi_device *spi)
|
||||||
{
|
{
|
||||||
@@ -1536,7 +1532,7 @@ static struct spi_driver ks8851_driver = {
|
|||||||
.driver = {
|
.driver = {
|
||||||
.name = "ks8851",
|
.name = "ks8851",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.pm = KS8851_PM_OPS,
|
.pm = &ks8851_pm_ops,
|
||||||
},
|
},
|
||||||
.probe = ks8851_probe,
|
.probe = ks8851_probe,
|
||||||
.remove = ks8851_remove,
|
.remove = ks8851_remove,
|
||||||
|
Reference in New Issue
Block a user