projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cd9825
)
partitions: msdos: fix for v2.6.36
author
黄涛
<huangtao@rock-chips.com>
Mon, 1 Aug 2011 03:29:37 +0000
(11:29 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Mon, 1 Aug 2011 03:29:37 +0000
(11:29 +0800)
fs/partitions/msdos.c
patch
|
blob
|
history
diff --git
a/fs/partitions/msdos.c
b/fs/partitions/msdos.c
index 3c47d5db12d7a732148ae197f2e9a8494edea057..251b425dfecf6c371553fb633ebea455e1e24b40 100644
(file)
--- a/
fs/partitions/msdos.c
+++ b/
fs/partitions/msdos.c
@@
-431,6
+431,9
@@
static struct {
int msdos_partition(struct parsed_partitions *state)
{
+#if defined(CONFIG_SDMMC_RK29) && !defined(CONFIG_SDMMC_RK29_OLD)
+ const struct block_device *bdev = state->bdev;
+#endif
sector_t sector_size = bdev_logical_block_size(state->bdev) / 512;
Sector sect;
unsigned char *data;