driver core: always handle dpm_order
authorRabin Vincent <rabin.vincent@stericsson.com>
Mon, 23 Apr 2012 07:16:36 +0000 (09:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jun 2012 22:58:04 +0000 (15:58 -0700)
commitbdd4034df8b37841eeaf7b05f86e732ab8e0b08a
tree9f20c1b00803d17316f55930512f4fe39bef56d9
parentcfaf025112d3856637ff34a767ef785ef5cf2ca9
driver core: always handle dpm_order

If !dev->class, device_move() does not respect the dpm_order.
Fix it to do so.

Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
[Fixed a small dangling label compile warning]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c