device: Support already powered devices
authorLeena Gunda <leena.gunda@wipro.com>
Thu, 25 Nov 2010 15:11:38 +0000 (20:41 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 26 Nov 2010 18:38:29 +0000 (19:38 +0100)
commit6d3811f1bd54475c0f14e05c48775c7387cded63
tree538be520a20bb0947a73e3c6d1b165e542b97f37
parent0c610386c0162ca909a98a66009c10ec65849140
device: Support already powered devices

When a device is already powered up, the enable hook will return -EALREADY.
In that case, ConnMan should just set it to powered and enable its
underlying technology.

Fixes BMC#10397
src/device.c