fpga: region: add register/unregister functions
authorAlan Tull <atull@kernel.org>
Wed, 15 Nov 2017 20:20:23 +0000 (14:20 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2017 15:30:38 +0000 (16:30 +0100)
commit52a3a7ccce07e73323fc1bae9eb0b0b63375391c
tree6796ce652e7ad0c399ba3cd3cd1bb2f5034fa089
parent3b49537f8084af15ccaac542eaf317e01c6869e6
fpga: region: add register/unregister functions

Another step in separating common code from device tree specific
code for FPGA regions.

* add FPGA region register/unregister functions.
* add the register/unregister functions to the header
* use devm_kzalloc to alloc the region.
* add a method for getting bridges to the region struct
* add priv to the region struct
* use region->info in of_fpga_region_get_bridges

Signed-off-by: Alan Tull <atull@kernel.org>
Acked-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/fpga-region.c
include/linux/fpga/fpga-region.h