On 08/26/2013 10:20 AM, Tomasz Nowicki wrote:
W dniu 23.08.2013 23:25, al.stone@linaro.org pisze:
From: Al Stone ahs3@redhat.com
This code allows the Samsung pinctrl driver to use either FDT or ACPI in defining pin controllers (i.e., collections of GPIO controllers, in this case). On probe, the driver first attempts to configure a driver using FDT; failing that, using ACPI is attempted. The size of the patch is due to essentially having to duplicate the FDT paths for ACPI, since the FDT code made assumptions about data structures that are not necessarily available with ACPI.
Signed-off-by: Al Stone al.stone@linaro.org
drivers/pinctrl/pinctrl-samsung.c | 507 +++++++++++++++++++++++++++++++++++++- drivers/pinctrl/pinctrl-samsung.h | 3 + 2 files changed, 503 insertions(+), 7 deletions(-)
diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c index a7fa9e2..e135007 100644 --- a/drivers/pinctrl/pinctrl-samsung.c +++ b/drivers/pinctrl/pinctrl-samsung.c @@ -29,6 +29,7 @@
[snip...]
During kernel building I got lots of errors for ACPI macros if !CONFIG_ACPI. These macros are used either inside of ACPICA files or ACPI specific files.
Argh. My bad. I'll fix and resubmit. Thanks, Tomasz.