summaryrefslogtreecommitdiffstats
path: root/commands/nand.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-06-10 21:20:44 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-07-21 16:41:46 +0200
commit4b34297cfbf8b6d88a602898f0db05b5bf5bf8fd (patch)
tree8b414f0b816d7faea139e8e6de2c3aaa0b8207a2 /commands/nand.c
parent6459b135d9f1cc1aee8d3564a6097ae21e30b2ac (diff)
downloadbarebox-4b34297cfbf8b6d88a602898f0db05b5bf5bf8fd.tar.gz
Get rid of remaining DEVICE_TYPE_* usage
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/nand.c')
-rw-r--r--commands/nand.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/commands/nand.c b/commands/nand.c
index 9776443..f7406fd 100644
--- a/commands/nand.c
+++ b/commands/nand.c
@@ -272,10 +272,6 @@ static int do_nand(cmd_tbl_t *cmdtp, int argc, char *argv[])
}
dev = cdev->dev;
- if (dev->type != DEVICE_TYPE_NAND_BB) {
- printf("not a nand bb device: %s\n", dev);
- return 1;
- }
bb = dev->priv;
close(bb->fd);
unregister_device(dev);