summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2016-03-01 13:44:52 +0100
committerMichael S. Tsirkin <mst@redhat.com>2016-03-02 18:08:58 +0200
commit15e90f526bb4e1f9d9b3ecaa8e20bd608bd4dac7 (patch)
treeeece763127e112e0079162ee0375fcc7a9b6a148 /drivers/s390
parent80f7d0301e7913f704d3505722f806717c61dff5 (diff)
downloadop-kernel-dev-15e90f526bb4e1f9d9b3ecaa8e20bd608bd4dac7.zip
op-kernel-dev-15e90f526bb4e1f9d9b3ecaa8e20bd608bd4dac7.tar.gz
virtio/s390: use dev_to_virtio
Use dev_to_virtio() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@163.com> Message-Id: <912bf59bd3a48f2d4d4994681e898dc084fe29d3.1451484163.git.geliangtang@163.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/virtio/virtio_ccw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/virtio/virtio_ccw.c b/drivers/s390/virtio/virtio_ccw.c
index bf2d130..46b110a1 100644
--- a/drivers/s390/virtio/virtio_ccw.c
+++ b/drivers/s390/virtio/virtio_ccw.c
@@ -945,8 +945,7 @@ static struct virtio_config_ops virtio_ccw_config_ops = {
static void virtio_ccw_release_dev(struct device *_d)
{
- struct virtio_device *dev = container_of(_d, struct virtio_device,
- dev);
+ struct virtio_device *dev = dev_to_virtio(_d);
struct virtio_ccw_device *vcdev = to_vc_device(dev);
kfree(vcdev->status);
OpenPOWER on IntegriCloud