]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
fpga: altera-hps2fpga: fix multiple init of l3_remap_lock
authorIan Abbott <abbotti@mev.co.uk>
Wed, 2 Aug 2017 02:20:54 +0000 (21:20 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Sun, 10 Sep 2017 23:08:49 +0000 (18:08 -0500)
commitbf1a686f7fc7c58fd57a581690e9e56210e40900
tree54a8d2d173d8179cefc5a05b3b7344ea1852e88b
parent4cfa1b69f25e15affe416ce04b4cc113282ce64f
fpga: altera-hps2fpga: fix multiple init of l3_remap_lock

BugLink: http://bugs.launchpad.net/bugs/1716284
commit 4ae2bd4b3ada3dfd80ca8110b4f567752966ca1e upstream.

The global spinlock `l3_remap_lock` is reinitialized every time the
"probe" function `alt_fpga_bridge_probe()` is called.  It should only be
initialized once.  Use `DEFINE_SPINLOCK()` to initialize it statically.

Fixes: e5f8efa5c8bf ("ARM: socfpga: fpga bridge driver support")
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-By: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Alan Tull <atull@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/fpga/altera-hps2fpga.c