]> git.baikalelectronics.ru Git - kernel.git/commit
Driver core: add suspend() and resume() to struct device_type
authorDmitry Torokhov <dtor@insightbb.com>
Tue, 3 Apr 2007 05:08:40 +0000 (01:08 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 17:57:29 +0000 (10:57 -0700)
commit7b7da6a6c9e34d4d34b63bff981907a6ee34fe81
treed44c6c9952e1433566a3e6a4eb0123e33d10d97d
parent9f302f87b6caf236ff9810c5910109afa8c8c530
Driver core: add suspend() and resume() to struct device_type

Driver core: add suspend() and resume() to struct device_type

In cases when there are devices of different types in the same class
we can't use class's implementation of suspend and resume methods and
we need to add them to struct device_type instead.

Also fix error handling in resume code (we should not try to call
class's resume method iof bus's resume method for the device failed.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/power/resume.c
drivers/base/power/suspend.c
include/linux/device.h