power: support _noirq actions on device types and classes
commite7176a37d436a214f6a7727ea7986c654cbee8f0
authorDominik Brodowski <linux@dominikbrodowski.net>
Mon, 15 Mar 2010 20:43:11 +0000 (15 21:43 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Wed, 24 Mar 2010 10:00:02 +0000 (24 11:00 +0100)
tree6efc0a74883b326ff7575a36793120027018195c
parent7d7ba8d31eb293016bc91a5c8fc36b21fd917265
power: support _noirq actions on device types and classes

The new-style dev_pm_ops provide callbacks for both IRQs enabled
and disabled. However, the _noirq variants were only called for
buses registered with a device, not for classes and types.

In order to properly use dev_pm_ops in class pcmcia_socket_class,
support _noirq actions also on classes and types.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/main.c