[PATCH 5.19 471/717] mfd: sm501: Add check for platform_driver_register()