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: kbuild test robot <lkp@intel.com>
Cc: gregkh@linuxfoundation.org
Cc: devel@driverdev.osuosl.org
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Suzuki K Poulose 2019-06-26 09:46:53 +01:00 committed by Greg Kroah-Hartman
parent 65b6668234
commit fb59b7824d
2 changed files with 2 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);
}