Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298799
b: refs/heads/master
c: 5865f28
h: refs/heads/master
i:
  298797: a00f3f7
  298795: 8ebca2d
  298791: 05b7796
  298783: 4304780
v: v3
  • Loading branch information
Ulf Hansson authored and Chris Ball committed Apr 6, 2012
1 parent 07f5082 commit 914f224
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: faf8180b20882b52145b96d6d4ed082d41908f90
refs/heads/master: 5865f2876baa5c68fd0d50029dd220ce19f3d2af
27 changes: 1 addition & 26 deletions trunk/drivers/mmc/card/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -1623,24 +1623,6 @@ static int mmc_blk_alloc_parts(struct mmc_card *card, struct mmc_blk_data *md)
return ret;
}

static int
mmc_blk_set_blksize(struct mmc_blk_data *md, struct mmc_card *card)
{
int err;

mmc_claim_host(card->host);
err = mmc_set_blocklen(card, 512);
mmc_release_host(card->host);

if (err) {
pr_err("%s: unable to set block size to 512: %d\n",
md->disk->disk_name, err);
return -EINVAL;
}

return 0;
}

static void mmc_blk_remove_req(struct mmc_blk_data *md)
{
struct mmc_card *card;
Expand Down Expand Up @@ -1768,7 +1750,6 @@ static const struct mmc_fixup blk_fixups[] =
static int mmc_blk_probe(struct mmc_card *card)
{
struct mmc_blk_data *md, *part_md;
int err;
char cap_str[10];

/*
Expand All @@ -1781,10 +1762,6 @@ static int mmc_blk_probe(struct mmc_card *card)
if (IS_ERR(md))
return PTR_ERR(md);

err = mmc_blk_set_blksize(md, card);
if (err)
goto out;

string_get_size((u64)get_capacity(md->disk) << 9, STRING_UNITS_2,
cap_str, sizeof(cap_str));
pr_info("%s: %s %s %s %s\n",
Expand All @@ -1809,7 +1786,7 @@ static int mmc_blk_probe(struct mmc_card *card)
out:
mmc_blk_remove_parts(card, md);
mmc_blk_remove_req(md);
return err;
return 0;
}

static void mmc_blk_remove(struct mmc_card *card)
Expand Down Expand Up @@ -1845,8 +1822,6 @@ static int mmc_blk_resume(struct mmc_card *card)
struct mmc_blk_data *md = mmc_get_drvdata(card);

if (md) {
mmc_blk_set_blksize(md, card);

/*
* Resume involves the card going into idle state,
* so current partition is always the main one.
Expand Down

0 comments on commit 914f224

Please sign in to comment.