rapidio: add shutdown notification for RapidIO devices
Add bus-specific callback to stop RapidIO devices during a system shutdown. Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com> Cc: Matt Porter <mporter@kernel.crashing.org> Cc: Aurelien Jacquiot <a-jacquiot@ti.com> Cc: Andre van Herk <andre.van.herk@prodrive-technologies.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
dbe74afe6a
commit
83dc2cbc11
@@ -423,6 +423,7 @@ struct rio_ops {
|
||||
* @id_table: RIO device ids to be associated with this driver
|
||||
* @probe: RIO device inserted
|
||||
* @remove: RIO device removed
|
||||
* @shutdown: shutdown notification callback
|
||||
* @suspend: RIO device suspended
|
||||
* @resume: RIO device awakened
|
||||
* @enable_wake: RIO device enable wake event
|
||||
@@ -437,6 +438,7 @@ struct rio_driver {
|
||||
const struct rio_device_id *id_table;
|
||||
int (*probe) (struct rio_dev * dev, const struct rio_device_id * id);
|
||||
void (*remove) (struct rio_dev * dev);
|
||||
void (*shutdown)(struct rio_dev *dev);
|
||||
int (*suspend) (struct rio_dev * dev, u32 state);
|
||||
int (*resume) (struct rio_dev * dev);
|
||||
int (*enable_wake) (struct rio_dev * dev, u32 state, int enable);
|
||||
|
Reference in New Issue
Block a user