Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274822
b: refs/heads/master
c: 3d0e9db
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Eremin-Solenikov authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 9733b87 commit 0821e6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 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: cd3aafd0bd3ad383fd43196bc8dcac2edfec95c2
refs/heads/master: 3d0e9db409909a0259fa005fee81a7c639bd645a
9 changes: 1 addition & 8 deletions trunk/drivers/mtd/maps/dc21285.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,10 @@ static struct map_info dc21285_map = {


/* Partition stuff */
static struct mtd_partition *dc21285_parts;
static const char *probes[] = { "RedBoot", "cmdlinepart", NULL };

static int __init init_dc21285(void)
{

int nrparts;

/* Determine bankwidth */
switch (*CSR_SA110_CNTL & (3<<14)) {
case SA110_CNTL_ROMWIDTH_8:
Expand Down Expand Up @@ -200,8 +196,7 @@ static int __init init_dc21285(void)

dc21285_mtd->owner = THIS_MODULE;

nrparts = parse_mtd_partitions(dc21285_mtd, probes, &dc21285_parts, 0);
mtd_device_register(dc21285_mtd, dc21285_parts, nrparts);
mtd_device_parse_register(dc21285_mtd, probes, 0, NULL, 0);

if(machine_is_ebsa285()) {
/*
Expand All @@ -224,8 +219,6 @@ static int __init init_dc21285(void)
static void __exit cleanup_dc21285(void)
{
mtd_device_unregister(dc21285_mtd);
if (dc21285_parts)
kfree(dc21285_parts);
map_destroy(dc21285_mtd);
iounmap(dc21285_map.virt);
}
Expand Down

0 comments on commit 0821e6e

Please sign in to comment.