fpga: region: move device tree support to of-fpga-region.c
authorAlan Tull <atull@kernel.org>
Wed, 15 Nov 2017 20:20:25 +0000 (14:20 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2017 15:30:38 +0000 (16:30 +0100)
commitef3acdd820752e0abb5f1ec899025967d0dccf3d
tree4e41f8f8ca7b04a60e62f1220747b7dd077324f5
parent503d4b7a446b3838785fa7f21e339941a5d1c2d5
fpga: region: move device tree support to of-fpga-region.c

Create of-fpga-region.c and move the following functions without
modification from fpga-region.c.

* of_fpga_region_find
* of_fpga_region_get_mgr
* of_fpga_region_get_bridges
* child_regions_with_firmware
* of_fpga_region_parse_ov
* of_fpga_region_notify_pre_apply
* of_fpga_region_notify_post_remove
* of_fpga_region_notify
* of_fpga_region_probe
* of_fpga_region_remove

Create two new functions with some code from fpga_region_init/exit.

* of_fpga_region_init
* of_fpga_region_exit

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/Kconfig
drivers/fpga/Makefile
drivers/fpga/fpga-region.c
drivers/fpga/of-fpga-region.c [new file with mode: 0644]