summaryrefslogtreecommitdiffstats
path: root/common/partitions.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-07-02 11:00:20 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-07-02 11:00:20 +0200
commitecb682dfdae30e660d95ff2a1a2823d55517e296 (patch)
treec087bbd2e1ac551e2828c507b2b33026c9b3c0e6 /common/partitions.c
parent05772f77e849de982866cd94941262dc84abd1e1 (diff)
parentcdd4b4f075592738feb0205b6e04c45b9c997bed (diff)
downloadbarebox-ecb682dfdae30e660d95ff2a1a2823d55517e296.tar.gz
Merge branch 'for-next/size-decrease'
Diffstat (limited to 'common/partitions.c')
-rw-r--r--common/partitions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/partitions.c b/common/partitions.c
index dc91933..78b09fc 100644
--- a/common/partitions.c
+++ b/common/partitions.c
@@ -97,7 +97,7 @@ static void __maybe_unused try_dos_partition(struct block_device *blk,
table = (struct partition_entry *)&buffer[446];
/* valid for x86 BIOS based disks only */
- if (blk->num_blocks == 0)
+ if (IS_ENABLED(CONFIG_DISK_BIOS) && blk->num_blocks == 0)
blk->num_blocks = disk_guess_size(blk->dev, table);
for (i = 0; i < 4; i++) {