[PATCH 5.15 346/530] mfd: sm501: Add check for platform_driver_register()