block2mtd.c (8c57a5e7b2820f349c95b8c8393fec1e0f4070d2) block2mtd.c (e4dca7b7aa08b22893c45485d222b5807c1375ae)
1/*
2 * block2mtd.c - create an mtd from a block device
3 *
4 * Copyright (C) 2001,2002 Simon Evans <spse@secret.org.uk>
5 * Copyright (C) 2004-2006 Joern Engel <joern@wh.fh-wedel.de>
6 *
7 * Licence: GPL
8 */

--- 417 unchanged lines hidden (view full) ---

426 }
427
428 add_device(name, erase_size, timeout);
429
430 return 0;
431}
432
433
1/*
2 * block2mtd.c - create an mtd from a block device
3 *
4 * Copyright (C) 2001,2002 Simon Evans <spse@secret.org.uk>
5 * Copyright (C) 2004-2006 Joern Engel <joern@wh.fh-wedel.de>
6 *
7 * Licence: GPL
8 */

--- 417 unchanged lines hidden (view full) ---

426 }
427
428 add_device(name, erase_size, timeout);
429
430 return 0;
431}
432
433
434static int block2mtd_setup(const char *val, struct kernel_param *kp)
434static int block2mtd_setup(const char *val, const struct kernel_param *kp)
435{
436#ifdef MODULE
437 return block2mtd_setup2(val);
438#else
439 /* If more parameters are later passed in via
440 /sys/module/block2mtd/parameters/block2mtd
441 and block2mtd_init() has already been called,
442 we can parse the argument now. */

--- 59 unchanged lines hidden ---
435{
436#ifdef MODULE
437 return block2mtd_setup2(val);
438#else
439 /* If more parameters are later passed in via
440 /sys/module/block2mtd/parameters/block2mtd
441 and block2mtd_init() has already been called,
442 we can parse the argument now. */

--- 59 unchanged lines hidden ---