aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtd_blkdevs.c
diff options
context:
space:
mode:
authorMaxim Levitsky <maximlevitsky@gmail.com>2010-02-26 15:08:40 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-02-26 15:13:49 -0500
commit133fa8c7d70d16b07db3a3d87ea18291db8f8ebf (patch)
tree0a5a8ab311a46dbfd8cb3f90dce98adafc6c8473 /drivers/mtd/mtd_blkdevs.c
parent67e054e919248fa1db93de727fb9ad49eb700642 (diff)
mtd: Few follow up cleanups for Smartmedia/xD support
* Test results of few functions that were declared with __must_check * Fix bogus gcc warning about uinitialized variable 'ret' * Remove unused variable from mtdblock_remove_dev * Don't use deprecated DMA_32BIT_MASK Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/mtd_blkdevs.c')
-rw-r--r--drivers/mtd/mtd_blkdevs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index 9dd23d6acbb6..e32c49cb4005 100644
--- a/drivers/mtd/mtd_blkdevs.c
+++ b/drivers/mtd/mtd_blkdevs.c
@@ -380,9 +380,11 @@ int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new)
380 380
381 add_disk(gd); 381 add_disk(gd);
382 382
383 if (new->disk_attributes) 383 if (new->disk_attributes) {
384 sysfs_create_group(&disk_to_dev(gd)->kobj, 384 ret = sysfs_create_group(&disk_to_dev(gd)->kobj,
385 new->disk_attributes); 385 new->disk_attributes);
386 WARN_ON(ret);
387 }
386 return 0; 388 return 0;
387error4: 389error4:
388 module_put(tr->owner); 390 module_put(tr->owner);