device: Set element driver when probing a device driver
authorJoey Lee <jlee@novell.com>
Thu, 21 Oct 2010 08:56:53 +0000 (10:56 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 21 Oct 2010 09:01:47 +0000 (11:01 +0200)
commit57536b8359c5c99f015cd97c597e2de82ce9144f
tree73b038e6c4bf3ef75260d8bc2243027ce6ab5b7c
parent90d0f038b0a6ddb13c67c9ca10229f877259cb2b
device: Set element driver when probing a device driver

When a device shows up through rtnl before the device driver is created,
the device's element driver pointer will not be set.
The bug is not visible with built-in devices, it only appears with
removable ones or with those that are completely removed from the bus when
being rfkilled.
src/connman.h
src/device.c
src/element.c