Skip to content
Commit 8325a6c2 authored by 蒋家盛's avatar 蒋家盛 Committed by Lee Jones
Browse files

mfd: sm501: Add check for platform_driver_register()



As platform_driver_register() can return error numbers,
it should be better to check platform_driver_register()
and deal with the exception.

Fixes: b6d6454f ("[PATCH] mfd: SM501 core driver")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220913091112.1739138-1-jiasheng@iscas.ac.cn
parent a5e84f33
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment