]> www.infradead.org Git - users/willy/linux.git/commit
firmware: arm_sdei: Drop check for /firmware/ node and always register driver
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 22 Apr 2020 12:28:23 +0000 (13:28 +0100)
committerWill Deacon <will@kernel.org>
Mon, 4 May 2020 17:39:27 +0000 (18:39 +0100)
commitcaf2cd610dbbfb533c8b84255fbe77dca36229d0
tree61b8b03b60ff37b1dfe434c4f750ffb126a30787
parent6a8b55ed4056ea5559ebe4f6a4b247f627870d4c
firmware: arm_sdei: Drop check for /firmware/ node and always register driver

As with most of the drivers, let us register this driver unconditionally
by dropping the checks for presence of firmware nodes(DT) or entries(ACPI).

Further, as mentioned in the commit acafce48b07b ("firmware: arm_sdei:
Fix DT platform device creation"), the core takes care of creation of
platform device when the appropriate device node is found and probe
is called accordingly.

Let us check only for the presence of ACPI firmware entry before creating
the platform device and flag warning if we fail.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: James Morse <james.morse@arm.com>
Cc: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/r/20200422122823.1390-1-sudeep.holla@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/firmware/arm_sdei.c