summaryrefslogtreecommitdiff
path: root/include/linux/amba
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2011-02-23 06:33:17 +0300
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-02-23 19:26:46 +0300
commitba74ec7f6b2bf9e1b5d0f2c5cef08766944cb2c8 (patch)
tree3b781d98bb3b18de0ccc30c71316092fd9b9df94 /include/linux/amba
parent2d00880fa842e7dd34f5bb5eb3b5f8337b068be5 (diff)
downloadlinux-ba74ec7f6b2bf9e1b5d0f2c5cef08766944cb2c8.tar.xz
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/linux/amba')
-rw-r--r--include/linux/amba/bus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h
index 227d590cd8d5..fcbbe71a3cc1 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)