Use udev_device_get_parent_with_subsystem_devtype() function