diff options
Diffstat (limited to 'src/loader/mbr.c')
-rw-r--r-- | src/loader/mbr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loader/mbr.c b/src/loader/mbr.c index 599952c..df0c1db 100644 --- a/src/loader/mbr.c +++ b/src/loader/mbr.c @@ -10,7 +10,7 @@ static struct mbr_entry entries[16] = { 0 }; static s32 mbr_read(void *buf, u32 lba, u32 sector_count, struct dev *part) { u8 dev_id = (part->data & 0xff00) >> 8; - struct dev *dev = dev_get(dev_id); + struct dev *dev = dev_get_by_id(dev_id); assert(dev && dev->type == DEV_DISK && dev->read); u8 mbr_id = part->data & 0xff; |