]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - block/genhd.c
ARM: dts: imx6ul: specify proper clocks for the PWM nodes
[karo-tx-linux.git] / block / genhd.c
index 9f42526b4d62bca142045d74431b69143adfffef..eb05dfc1dffeb03dfc1232268d6bf2850f6d88a5 100644 (file)
@@ -877,7 +877,7 @@ static int show_partition(struct seq_file *seqf, void *v)
        char buf[BDEVNAME_SIZE];
 
        /* Don't show non-partitionable removeable devices or empty devices */
-       if (!get_capacity(sgp) || (!disk_max_parts(sgp) &&
+       if (!get_capacity(sgp) || (!(disk_max_parts(sgp) > 1) &&
                                   (sgp->flags & GENHD_FL_REMOVABLE)))
                return 0;
        if (sgp->flags & GENHD_FL_SUPPRESS_PARTITION_INFO)