]> git.baikalelectronics.ru Git - kernel.git/commit
arm-ccn: Enable building as module
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 28 Apr 2016 15:05:01 +0000 (16:05 +0100)
committerArnd Bergmann <arnd@arndb.de>
Mon, 9 May 2016 14:36:03 +0000 (16:36 +0200)
commitc5bd9db61cbea76b97b92984275b639d2fb39c83
tree3f596fe83edce5d6ba7776f7f2fe016778a688d4
parent93bf3d3002205bf7b1a502c20816c4af9fc8c88d
arm-ccn: Enable building as module

arm-ccn driver uses irq_set_affinity, which is not exported and
hence cannot be built as a module, eventhough we have all the
bits ready. This patch makes use of the exported helper
irq_set_affinity_hint() instead. Also, the __free_irq expects
the affinity_hint to be NULL when we free the irq. So set the
affinity_hint to NULL at clean up.

Now that we can build it as a module, update the Kconfig to
reflect the change.

Cc: Will Deacon <will.deacon@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/bus/Kconfig
drivers/bus/arm-ccn.c