Skip to content

Commit 663c0e8

Browse files
Gavin Shanwilldeacon
authored andcommitted
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>
1 parent 1198842 commit 663c0e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/firmware/arm_sdei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static struct sdei_event *sdei_event_create(u32 event_num,
217217
goto fail;
218218
}
219219

220-
reg->event_num = event_num;
220+
reg->event_num = event->event_num;
221221
reg->priority = event->priority;
222222

223223
reg->callback = cb;

0 commit comments

Comments
 (0)