[PATCH 5.17 253/298] platform/x86: barco-p50-gpio: Add check for platform_driver_register