[PATCH openEuler-5.10-LTS 53/80] i2c: npcm7xx: Add check for platform_driver_register