[PATCH v4.14.y 1/2] driver: platform: Add helper for safer setting of driver_override