diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2022-06-13 22:16:27 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-06-24 12:09:01 +0300 |
commit | 87d044096ea62f1f230e8c4679ee8abf03266f64 (patch) | |
tree | cba05893fe027ff10d88a3b4d4e563aac91679f8 /drivers/soc | |
parent | abfed87e2a12bd246047d78c01d81eb9529f1d06 (diff) | |
download | linux-87d044096ea62f1f230e8c4679ee8abf03266f64.tar.xz |
crypto: ccp - Fix device IRQ counting by using platform_irq_count()
The ccp driver loops through the platform device resources array to get
the IRQ count for the device. With commit a1a2b7125e10 ("of/platform: Drop
static setup of IRQ resource from DT core"), the IRQ resources are no
longer stored in the platform device resource array. As a result, the IRQ
count is now always zero. This causes the driver to issue a second call to
platform_get_irq(), which fails if the IRQ count is really 1, causing the
loading of the driver to fail.
Replace looping through the resources array to count the number of IRQs
with a call to platform_irq_count().
Fixes: a1a2b7125e10 ("of/platform: Drop static setup of IRQ resource from DT core")
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/soc')
0 files changed, 0 insertions, 0 deletions