diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2011-02-15 11:44:23 +0530 |
---|---|---|
committer | Henrik Öhman <henrik.ohman@stericsson.com> | 2011-03-11 08:25:29 +0100 |
commit | 9865dd4e98288187f2d4ff73152ed6f1a1f0f11a (patch) | |
tree | 5a27b6b18180c1d2a9cbb2ad23c828c0200384b5 /include | |
parent | cac493fcf94187168193610ddcd29b1bec304655 (diff) |
amba: support pm ops
Support pm_ops in the AMBA bus, required to allow drivers to use runtime pm.
The implementation of AMBA bus pm ops is based on the platform bus
implementation.
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
ST-Ericsson Linux next: -
ST-Ericsson ID: ER323382
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I6e1426734a1f6d1402fd68734677d09aafdf3a5b
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16643
Tested-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/amba/bus.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h index e197d508512..7ef1776c6ee 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h @@ -53,6 +53,8 @@ enum amba_vendor { extern struct bus_type amba_bustype; +#define to_amba_device(d) container_of(d, struct amba_device, dev) + #define amba_get_drvdata(d) dev_get_drvdata(&d->dev) #define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p) |