s390/net: remove pm ops from ccwgroup drivers
commit 5e1fb45ec8
("s390/ccwgroup: remove pm support") removed power
management support from the ccwgroup bus driver. So remove the
associated callbacks from all ccwgroup drivers.
CC: Vineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
fa14b9b0c0
commit
fc4a4515ac
@@ -1698,43 +1698,6 @@ static void ctcm_remove_device(struct ccwgroup_device *cgdev)
|
||||
put_device(&cgdev->dev);
|
||||
}
|
||||
|
||||
static int ctcm_pm_suspend(struct ccwgroup_device *gdev)
|
||||
{
|
||||
struct ctcm_priv *priv = dev_get_drvdata(&gdev->dev);
|
||||
|
||||
if (gdev->state == CCWGROUP_OFFLINE)
|
||||
return 0;
|
||||
netif_device_detach(priv->channel[CTCM_READ]->netdev);
|
||||
ctcm_close(priv->channel[CTCM_READ]->netdev);
|
||||
if (!wait_event_timeout(priv->fsm->wait_q,
|
||||
fsm_getstate(priv->fsm) == DEV_STATE_STOPPED, CTCM_TIME_5_SEC)) {
|
||||
netif_device_attach(priv->channel[CTCM_READ]->netdev);
|
||||
return -EBUSY;
|
||||
}
|
||||
ccw_device_set_offline(gdev->cdev[1]);
|
||||
ccw_device_set_offline(gdev->cdev[0]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ctcm_pm_resume(struct ccwgroup_device *gdev)
|
||||
{
|
||||
struct ctcm_priv *priv = dev_get_drvdata(&gdev->dev);
|
||||
int rc;
|
||||
|
||||
if (gdev->state == CCWGROUP_OFFLINE)
|
||||
return 0;
|
||||
rc = ccw_device_set_online(gdev->cdev[1]);
|
||||
if (rc)
|
||||
goto err_out;
|
||||
rc = ccw_device_set_online(gdev->cdev[0]);
|
||||
if (rc)
|
||||
goto err_out;
|
||||
ctcm_open(priv->channel[CTCM_READ]->netdev);
|
||||
err_out:
|
||||
netif_device_attach(priv->channel[CTCM_READ]->netdev);
|
||||
return rc;
|
||||
}
|
||||
|
||||
static struct ccw_device_id ctcm_ids[] = {
|
||||
{CCW_DEVICE(0x3088, 0x08), .driver_info = ctcm_channel_type_parallel},
|
||||
{CCW_DEVICE(0x3088, 0x1e), .driver_info = ctcm_channel_type_ficon},
|
||||
@@ -1764,9 +1727,6 @@ static struct ccwgroup_driver ctcm_group_driver = {
|
||||
.remove = ctcm_remove_device,
|
||||
.set_online = ctcm_new_device,
|
||||
.set_offline = ctcm_shutdown_device,
|
||||
.freeze = ctcm_pm_suspend,
|
||||
.thaw = ctcm_pm_resume,
|
||||
.restore = ctcm_pm_resume,
|
||||
};
|
||||
|
||||
static ssize_t group_store(struct device_driver *ddrv, const char *buf,
|
||||
|
Reference in New Issue
Block a user