Skip to content

Commit eb672c0

Browse files
committed
PM: ARM: locomo: Drop suspend and resume bus type callbacks
None of the locomo drivers in the tree implements the suspend and resume callbacks from struct locomo_driver, so drop them and drop the corresponding callbacks from locomo_bus_type. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 64ec72a commit eb672c0

2 files changed

Lines changed: 0 additions & 26 deletions

File tree

‎arch/arm/common/locomo.c‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -826,28 +826,6 @@ static int locomo_match(struct device *_dev, struct device_driver *_drv)
826826
return dev->devid == drv->devid;
827827
}
828828

829-
static int locomo_bus_suspend(struct device *dev, pm_message_t state)
830-
{
831-
struct locomo_dev *ldev = LOCOMO_DEV(dev);
832-
struct locomo_driver *drv = LOCOMO_DRV(dev->driver);
833-
int ret = 0;
834-
835-
if (drv && drv->suspend)
836-
ret = drv->suspend(ldev, state);
837-
return ret;
838-
}
839-
840-
static int locomo_bus_resume(struct device *dev)
841-
{
842-
struct locomo_dev *ldev = LOCOMO_DEV(dev);
843-
struct locomo_driver *drv = LOCOMO_DRV(dev->driver);
844-
int ret = 0;
845-
846-
if (drv && drv->resume)
847-
ret = drv->resume(ldev);
848-
return ret;
849-
}
850-
851829
static int locomo_bus_probe(struct device *dev)
852830
{
853831
struct locomo_dev *ldev = LOCOMO_DEV(dev);
@@ -875,8 +853,6 @@ struct bus_type locomo_bus_type = {
875853
.match = locomo_match,
876854
.probe = locomo_bus_probe,
877855
.remove = locomo_bus_remove,
878-
.suspend = locomo_bus_suspend,
879-
.resume = locomo_bus_resume,
880856
};
881857

882858
int locomo_driver_register(struct locomo_driver *driver)

‎arch/arm/include/asm/hardware/locomo.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ struct locomo_driver {
189189
unsigned int devid;
190190
int (*probe)(struct locomo_dev *);
191191
int (*remove)(struct locomo_dev *);
192-
int (*suspend)(struct locomo_dev *, pm_message_t);
193-
int (*resume)(struct locomo_dev *);
194192
};
195193

196194
#define LOCOMO_DRV(_d) container_of((_d), struct locomo_driver, drv)

0 commit comments

Comments
 (0)