driver core: fix build for CONFIG_BLOCK not enabled