]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/vme/vme.c
vme: add vme_init_bridge for common bridge init
authorAaron Sierra <asierra@xes-inc.com>
Sun, 24 Apr 2016 20:11:38 +0000 (15:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 May 2016 21:00:00 +0000 (14:00 -0700)
commit326071b3c985683f8a18417bed3ea2ab930a7ba1
tree6e6bf20fcc95af0132d25317c324da1509566e29
parent2ce7aed6a4da8ffa35f0232573a6901c0369720d
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>
drivers/vme/bridges/vme_ca91cx42.c
drivers/vme/bridges/vme_tsi148.c
drivers/vme/vme.c
drivers/vme/vme_bridge.h