diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2011-02-23 04:33:17 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-02-23 16:26:46 +0000 |
commit | ba74ec7f6b2bf9e1b5d0f2c5cef08766944cb2c8 (patch) | |
tree | 3b781d98bb3b18de0ccc30c71316092fd9b9df94 /include | |
parent | 2d00880fa842e7dd34f5bb5eb3b5f8337b068be5 (diff) | |
download | kernel_samsung_espresso10-ba74ec7f6b2bf9e1b5d0f2c5cef08766944cb2c8.zip kernel_samsung_espresso10-ba74ec7f6b2bf9e1b5d0f2c5cef08766944cb2c8.tar.gz kernel_samsung_espresso10-ba74ec7f6b2bf9e1b5d0f2c5cef08766944cb2c8.tar.bz2 |
ARM: 6758/1: 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>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
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 227d590..fcbbe71 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h @@ -58,6 +58,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) |