Merge branch 'sched/urgent' into sched/core
[firefly-linux-kernel-4.4.55.git] / fs / partitions / osf.c
index c05c17bc5df3581ea950818942384fdf989f380c..fc22b85d436a0a39292f3dc95b98fcb55ab7f33b 100644 (file)
@@ -10,7 +10,7 @@
 #include "check.h"
 #include "osf.h"
 
-int osf_partition(struct parsed_partitions *state, struct block_device *bdev)
+int osf_partition(struct parsed_partitions *state)
 {
        int i;
        int slot = 1;
@@ -49,7 +49,7 @@ int osf_partition(struct parsed_partitions *state, struct block_device *bdev)
        } * label;
        struct d_partition * partition;
 
-       data = read_dev_sector(bdev, 0, &sect);
+       data = read_part_sector(state, 0, &sect);
        if (!data)
                return -1;