aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hsi/clients/hsi_char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hsi/clients/hsi_char.c b/drivers/hsi/clients/hsi_char.c
index e61e5f991aa5..30733209fde2 100644
--- a/drivers/hsi/clients/hsi_char.c
+++ b/drivers/hsi/clients/hsi_char.c
@@ -705,7 +705,7 @@ static int hsc_probe(struct device *dev)
705 if (!hsc_major) { 705 if (!hsc_major) {
706 ret = alloc_chrdev_region(&hsc_dev, hsc_baseminor, 706 ret = alloc_chrdev_region(&hsc_dev, hsc_baseminor,
707 HSC_DEVS, devname); 707 HSC_DEVS, devname);
708 if (ret > 0) 708 if (ret == 0)
709 hsc_major = MAJOR(hsc_dev); 709 hsc_major = MAJOR(hsc_dev);
710 } else { 710 } else {
711 hsc_dev = MKDEV(hsc_major, hsc_baseminor); 711 hsc_dev = MKDEV(hsc_major, hsc_baseminor);