diff options
author | Gavin Shan <gshan@redhat.com> | 2020-09-22 23:04:13 +1000 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-09-28 21:52:22 +0100 |
commit | 663c0e89c8defd75a9d34ae31dbc315d6cf894bd (patch) | |
tree | 8609a3c0cf7d197ca4da09d909b693cbebcc9cd8 /drivers/firmware/arm_sdei.c | |
parent | 119884249fdba34a06df250a4402a6b2f3697a47 (diff) | |
download | linux-663c0e89c8defd75a9d34ae31dbc315d6cf894bd.tar.gz linux-663c0e89c8defd75a9d34ae31dbc315d6cf894bd.tar.bz2 linux-663c0e89c8defd75a9d34ae31dbc315d6cf894bd.zip |
firmware: arm_sdei: Retrieve event number from event instance
In sdei_event_create(), the event number is retrieved from the
variable @event_num for the shared event. The event number was
stored in the event instance. So we can fetch it from the event
instance, similar to what we're doing for the private event.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/r/20200922130423.10173-4-gshan@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/firmware/arm_sdei.c')
-rw-r--r-- | drivers/firmware/arm_sdei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/arm_sdei.c b/drivers/firmware/arm_sdei.c index a126ab7e3490..0f49fff20cc7 100644 --- a/drivers/firmware/arm_sdei.c +++ b/drivers/firmware/arm_sdei.c @@ -217,7 +217,7 @@ static struct sdei_event *sdei_event_create(u32 event_num, goto fail; } - reg->event_num = event_num; + reg->event_num = event->event_num; reg->priority = event->priority; reg->callback = cb; |