device: Use device_find for better readibility in device_create
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 21 Nov 2016 14:05:08 +0000 (15:05 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 22 Nov 2016 09:45:07 +0000 (10:45 +0100)
commit153a12143b9fef4b5d3c3a6597f6fe967a17c9d7
tree56f75d62d7f6a5ac01546700115be777b20b9dff
parent97692acd9e00d3c57cd399fbb0980717d4033659
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 <dedeckeh@gmail.com>
device.c