Skip to content

Commit 0cd070c

Browse files
author
Russell King
committed
ARM: sa1111: remove legacy shutdown method
Since the only user of the SA1111 device driver shutdown method has now gone, we can kill the bus level support code and the entry in the sa1111 device driver structure. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
1 parent 4fbd8d1 commit 0cd070c

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

‎arch/arm/common/sa1111.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,14 +1401,6 @@ static int sa1111_bus_resume(struct device *dev)
14011401
return ret;
14021402
}
14031403

1404-
static void sa1111_bus_shutdown(struct device *dev)
1405-
{
1406-
struct sa1111_driver *drv = SA1111_DRV(dev->driver);
1407-
1408-
if (drv && drv->shutdown)
1409-
drv->shutdown(to_sa1111_device(dev));
1410-
}
1411-
14121404
static int sa1111_bus_probe(struct device *dev)
14131405
{
14141406
struct sa1111_dev *sadev = to_sa1111_device(dev);
@@ -1438,7 +1430,6 @@ struct bus_type sa1111_bus_type = {
14381430
.remove = sa1111_bus_remove,
14391431
.suspend = sa1111_bus_suspend,
14401432
.resume = sa1111_bus_resume,
1441-
.shutdown = sa1111_bus_shutdown,
14421433
};
14431434
EXPORT_SYMBOL(sa1111_bus_type);
14441435

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ struct sa1111_driver {
433433
int (*remove)(struct sa1111_dev *);
434434
int (*suspend)(struct sa1111_dev *, pm_message_t);
435435
int (*resume)(struct sa1111_dev *);
436-
void (*shutdown)(struct sa1111_dev *);
437436
};
438437

439438
#define SA1111_DRV(_d) container_of((_d), struct sa1111_driver, drv)

0 commit comments

Comments
 (0)