diff options
author | Robert Rosengren <robert.rosengren@stericsson.com> | 2010-12-06 13:58:42 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2011-07-22 08:38:29 +0200 |
commit | 1360dbf0f15a9a2a1de669992203201492fbbd18 (patch) | |
tree | 78981cd16c3262dd8a3a9ade2c3ccd7f98f98b64 /fs | |
parent | c53f6cc82fe6b728b460fa25994ebb0342ab02a0 (diff) |
fs/partitions: Adapt blkdevparts to new interface
fs/partitions: Adapt blkdevparts to new interface of kernel 2.6.35
ST-Ericsson ID: ER282603
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I95fccf7f47fd5e4f716b6a0e6fec001d2c9428cf
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/10308
Tested-by: Robert ROSENGREN <robert.rosengren@stericsson.com>
Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com>
Reviewed-by: Sebastian RASMUSSEN <sebastian.rasmussen@stericsson.com>
Diffstat (limited to 'fs')
-rwxr-xr-x | fs/partitions/blkdev_parts.c | 4 | ||||
-rwxr-xr-x | fs/partitions/blkdev_parts.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fs/partitions/blkdev_parts.c b/fs/partitions/blkdev_parts.c index 48f4136d720..030565b7ce7 100755 --- a/fs/partitions/blkdev_parts.c +++ b/fs/partitions/blkdev_parts.c @@ -107,7 +107,7 @@ static int parse_blkdev_parts(char *blkdev_name, struct parsed_partitions *state return part_nbr; } -int blkdev_partition(struct parsed_partitions *state, struct block_device *bdev) +int blkdev_partition(struct parsed_partitions *state) { char blkdev_name[BDEVNAME_SIZE]; @@ -116,7 +116,7 @@ int blkdev_partition(struct parsed_partitions *state, struct block_device *bdev) return 0; /* Get the name of the blockdevice we are operating upon */ - if (bdevname(bdev, blkdev_name) == NULL) { + if (bdevname(state->bdev, blkdev_name) == NULL) { printk(KERN_WARNING "Could not get a blkdev name\n"); return 0; } diff --git a/fs/partitions/blkdev_parts.h b/fs/partitions/blkdev_parts.h index e6c5d40ed76..16d2b571625 100755 --- a/fs/partitions/blkdev_parts.h +++ b/fs/partitions/blkdev_parts.h @@ -10,5 +10,5 @@ * */ -int blkdev_partition(struct parsed_partitions *state, struct block_device *bdev); +int blkdev_partition(struct parsed_partitions *state); |