GUFI: move gufi_match_device() code to protocols

Since gufi_match_device() function contains acpi/dt dependent code
it should be broken into of_* and acpi_* pieces and moved to corresponding
protocols.

Signed-off-by: Semen Protsenko <semen.protsenko@linaro.org>
GUFI: move gufi_test_match() code to protocols

gufi_test_match() doesn't contain acpi/dt dependent code for now, but it's
still better to split it between acpi/dt protocols so that new protocol can
be easily added.

Signed-off-by: Semen Protsenko <semen.protsenko@linaro.org>
GUFI: move gufi_property_read_u32() code to protocols

Since gufi_property_read_u32() function contains acpi/dt dependent code
it should be broken into of_* and acpi_* pieces and moved to corresponding
protocols.

Signed-off-by: Semen Protsenko <semen.protsenko@linaro.org>
GUFI: get rid of acpi/dt headers in core part

Previous commits eliminate need in hardcoding, so acpi/dt headers are not
needed anymore and can be easily removed.

Signed-off-by: Semen Protsenko <semen.protsenko@linaro.org>
GUFI: fix possible memory leak in gufi_acpi_property_read_u32()

Signed-off-by: Semen Protsenko <semen.protsenko@linaro.org>
net: smc91x: remove gufi_node_get/gufi_node_put

Remove reference counting functions so that diff for smc91x driver
remains small (diff for converting driver to GUFI framework). We don't
want anyone to think that those functions *must* be added to driver
when converting it to GUFI.

Signed-off-by: Semen Protsenko <semen.protsenko@linaro.org>
net: smc91x: make GUFI code more similar to original code

Just to keep diff simple. There are no logical changes to code at all.

Signed-off-by: Semen Protsenko <semen.protsenko@linaro.org>