]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 13 Oct 2007 13:58:23 +0000 (14:58 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 13 Oct 2007 13:58:23 +0000 (14:58 +0100)
1  2 
drivers/mtd/maps/Kconfig
drivers/mtd/maps/physmap_of.c

Simple merge
index fbd613968717e7c1d10f0c656f486b0c47031d8b,cf75a566442ed790e70ef062b755bf3581db7afc..aeed9ea79714ab56454840ee34d6eb5395e60f12
@@@ -132,15 -225,14 +225,13 @@@ static int __devinit of_flash_probe(str
                goto err_out;
        }
  
-               dev_dbg(&dev->dev, "physmap flash device: %.8llx at %.8llx\n",
-           (unsigned long long)res.end - res.start + 1,
-           (unsigned long long)res.start);
+               dev_dbg(&dev->dev, "of_flash device: %.8llx-%.8llx\n",
+               (unsigned long long)res.start, (unsigned long long)res.end);
  
-       info = kzalloc(sizeof(struct physmap_flash_info), GFP_KERNEL);
-       if (info == NULL) {
-               err = -ENOMEM;
+       err = -ENOMEM;
+       info = kzalloc(sizeof(*info), GFP_KERNEL);
+       if (!info)
                goto err_out;
-       }
 -      memset(info, 0, sizeof(*info));
  
        dev_set_drvdata(&dev->dev, info);