Commit fb59b782 authored by Suzuki K Poulose's avatar Suzuki K Poulose Committed by Greg Kroah-Hartman

drivers: s390/cio: Fix compilation warning about const qualifiers

Update __ccwdev_check_busid() and __ccwgroupdev_check_busid() to use
"const" qualifiers to fix the compiler warning.
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Cc: gregkh@linuxfoundation.org
Cc: devel@driverdev.osuosl.org
Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 65b66682
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment