dyn_hotplug.c: refactor and cleanup includes

Signed-off-by: SkipXS <sskkiipp@gmail.com>