From: David Woodhouse Date: Sat, 13 Oct 2007 13:58:23 +0000 (+0100) Subject: Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ebf8889bd1fe3615991ff4494635d237280652a2;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Merge branch 'master' of git://git./linux/kernel/git/torvalds/linux-2.6 --- ebf8889bd1fe3615991ff4494635d237280652a2 diff --cc drivers/mtd/maps/physmap_of.c index fbd613968717,cf75a566442e..aeed9ea79714 --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c @@@ -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);