GPIO expander code question

Hi All,
What is the general opinion to remove the I2C PCA9548 GPIO expander from the initialisation of the WiFI driver, if the board that I am using is a derivative of the platform but does not include the GPIO expanders or I2C switches.

Can I just comment out most of the function code in the file
and recompile the yocto project, or is there a simper way not to get the GPIO service called when instantiating the WiFI driver?

Any ideas/pointers would be most appreciated
Kind Regards