diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 80374c82c50112a6f3c075ea5b429d25cd0da91a..fb6b3a6194cea2e962095ff756a9e1c297cf56b9 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2219,7 +2219,7 @@ static char *fmt_single_name(struct device *dev, int *id)
 {
 	const char *devname = dev_name(dev);
 	char *found, *name;
-	int id1, id2;
+	unsigned int id1, id2;
 
 	if (devname == NULL)
 		return NULL;