> - if (!i2c_gpio_debug_dir) > + if (IS_ERR(i2c_gpio_debug_dir)) > return; AFAIK, the trend is to remove error checking from debugfs calls. It is debug only anyhow. No need to bail out. But please double check.
Attachment:
signature.asc
Description: PGP signature