device: do not check state from within device_init
authorFelix Fietkau <nbd@nbd.name>
Sat, 18 Jul 2020 12:58:15 +0000 (14:58 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 18 Jul 2020 15:40:54 +0000 (17:40 +0200)
commitc057e711b2830a393206bf3d43a69ede0f5e0945
tree14db8916ec2a56693ac2e87d75f95acb47141db8
parent330f4032e32741f7f604d742616e4aad86452f4d
device: do not check state from within device_init

At this point the device is usually not fully set up yet and cannot handle
state changes / bringup

Signed-off-by: Felix Fietkau <nbd@nbd.name>
device.c