]> git.baikalelectronics.ru Git - kernel.git/commitdiff
s390/vmlogrdr: Remove power management support
authorPeter Oberparleiter <oberpar@linux.ibm.com>
Fri, 11 Jun 2021 11:28:13 +0000 (13:28 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Fri, 18 Jun 2021 14:41:21 +0000 (16:41 +0200)
Power management support was removed for s390 with
commit f5b114f6d22e ("s390: remove broken hibernate / power management
support").

Remove leftover vmlogrdr-related power management code.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/char/vmlogrdr.c

index 58333cb4503f4db1e3c76aa188e820997b2d9b6b..ed970ecfafdf119fa435f6384aae97e5f0c5bcb9 100644 (file)
@@ -679,34 +679,10 @@ static const struct attribute_group *vmlogrdr_attr_groups[] = {
        NULL,
 };
 
-static int vmlogrdr_pm_prepare(struct device *dev)
-{
-       int rc;
-       struct vmlogrdr_priv_t *priv = dev_get_drvdata(dev);
-
-       rc = 0;
-       if (priv) {
-               spin_lock_bh(&priv->priv_lock);
-               if (priv->dev_in_use)
-                       rc = -EBUSY;
-               spin_unlock_bh(&priv->priv_lock);
-       }
-       if (rc)
-               pr_err("vmlogrdr: device %s is busy. Refuse to suspend.\n",
-                      dev_name(dev));
-       return rc;
-}
-
-
-static const struct dev_pm_ops vmlogrdr_pm_ops = {
-       .prepare = vmlogrdr_pm_prepare,
-};
-
 static struct class *vmlogrdr_class;
 static struct device_driver vmlogrdr_driver = {
        .name = "vmlogrdr",
        .bus  = &iucv_bus,
-       .pm = &vmlogrdr_pm_ops,
        .groups = vmlogrdr_drv_attr_groups,
 };