From 153a12143b9fef4b5d3c3a6597f6fe967a17c9d7 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Mon, 21 Nov 2016 15:05:08 +0100 Subject: device: Use device_find for better readibility in device_create Use device_find in device_create so it's clear a device lookup is being done in the device list. Signed-off-by: Hans Dedecker --- device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device.c b/device.c index 82596e4..3c57a02 100644 --- a/device.c +++ b/device.c @@ -937,7 +937,7 @@ device_create(const char *name, struct device_type *type, struct device *odev = NULL, *dev; enum dev_change_type change; - odev = device_get(name, false); + odev = device_find(name); if (odev) { odev->current_config = true; change = device_apply_config(odev, type, config); -- cgit v1.2.3