diff --git a/drivers/s390/cio/ccwgroup.c b/drivers/s390/cio/ccwgroup.c index ea17615789c9..c522e9313c50 100644 --- a/drivers/s390/cio/ccwgroup.c +++ b/drivers/s390/cio/ccwgroup.c @@ -610,7 +610,7 @@ EXPORT_SYMBOL(ccwgroup_driver_unregister); static int __ccwgroupdev_check_busid(struct device *dev, const void *id) { - char *bus_id = id; + const char *bus_id = id; return (strcmp(bus_id, dev_name(dev)) == 0); } diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index f27536ba58eb..113248227137 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c @@ -1655,9 +1655,7 @@ EXPORT_SYMBOL_GPL(ccw_device_force_console); static int __ccwdev_check_busid(struct device *dev, const void *id) { - char *bus_id; - - bus_id = id; + const char *bus_id = id; return (strcmp(bus_id, dev_name(dev)) == 0); }