[PATCH 5.10 252/390] mfd: sm501: Add check for platform_driver_register()