drivers: core: add missing piece of code