aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/amba/bus.h
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2011-02-22 22:33:17 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-02-23 11:26:46 -0500
commitba74ec7f6b2bf9e1b5d0f2c5cef08766944cb2c8 (patch)
tree3b781d98bb3b18de0ccc30c71316092fd9b9df94 /include/linux/amba/bus.h
parent2d00880fa842e7dd34f5bb5eb3b5f8337b068be5 (diff)
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/bus.h')
-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 {
58 58
59extern struct bus_type amba_bustype; 59extern struct bus_type amba_bustype;
60 60
61#define to_amba_device(d) container_of(d, struct amba_device, dev)
62
61#define amba_get_drvdata(d) dev_get_drvdata(&d->dev) 63#define amba_get_drvdata(d) dev_get_drvdata(&d->dev)
62#define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p) 64#define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p)
63 65