diff options
author | Aaron Sierra <asierra@xes-inc.com> | 2016-04-24 23:11:38 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-02 00:00:00 +0300 |
commit | 326071b3c985683f8a18417bed3ea2ab930a7ba1 (patch) | |
tree | 6e6bf20fcc95af0132d25317c324da1509566e29 /drivers/vme/vme_bridge.h | |
parent | 2ce7aed6a4da8ffa35f0232573a6901c0369720d (diff) | |
download | linux-326071b3c985683f8a18417bed3ea2ab930a7ba1.tar.xz |
vme: add vme_init_bridge for common bridge init
Consolidate vme_bridge structure setup that every bridge was required
to do itself. This came about because .irq_mtx is only used within the
VME core, but was required to be setup externally.
This returns the structure passed in to support shorthand like this:
bridge = vme_init_bridge(&priv->bridge);
Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Acked-by: Martyn Welch <martyn@welchs.me.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/vme/vme_bridge.h')
-rw-r--r-- | drivers/vme/vme_bridge.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vme/vme_bridge.h b/drivers/vme/vme_bridge.h index b59cbee231dd..cb8246fd97be 100644 --- a/drivers/vme/vme_bridge.h +++ b/drivers/vme/vme_bridge.h @@ -177,6 +177,7 @@ void vme_bus_error_handler(struct vme_bridge *bridge, unsigned long long address, int am); void vme_irq_handler(struct vme_bridge *, int, int); +struct vme_bridge *vme_init_bridge(struct vme_bridge *); int vme_register_bridge(struct vme_bridge *); void vme_unregister_bridge(struct vme_bridge *); struct vme_error_handler *vme_register_error_handler( |