gpio: sifive: Set affinity callback to parent
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Nov 2020 21:33:50 +0000 (22:33 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 4 Dec 2020 08:05:12 +0000 (09:05 +0100)
commit011a78c1942ed6441880786d96cb90229e3ab0c9
tree6e2f9060e39272894c0f1552e44d090354b138d0
parent3b4feb21158f873269ff3fbe2fe8d23a88d64b24
gpio: sifive: Set affinity callback to parent

This assigns the .irq_set_affinity to the parent callback.
I assume the sifive GPIO can be used in systems with
SMP.

I used the pattern making the hirerarchy tolerant for missing
parent as in Marc's earlier patches.

Suggested-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Yash Shah <yash.shah@sifive.com>
Cc: Wesley W. Terpstra <wesley@sifive.com>
Link: https://lore.kernel.org/r/20201117213351.249668-1-linus.walleij@linaro.org
drivers/gpio/gpio-sifive.c