to_kunit_device
const struct device_driver *driver = to_kunit_device(dev)->driver;
kfree(to_kunit_device(d));