efi_get_device_by_path
dev = efi_get_device_by_path(&ptr, &len);
struct device *efi_get_device_by_path(const struct efi_dev_path **node,