build.c (91de76e661a266731fc2889a398ad1694df9d523) build.c (e4dca7b7aa08b22893c45485d222b5807c1375ae)
1/*
2 * Copyright (c) International Business Machines Corp., 2006
3 * Copyright (c) Nokia Corporation, 2007
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

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

1329/**
1330 * ubi_mtd_param_parse - parse the 'mtd=' UBI parameter.
1331 * @val: the parameter value to parse
1332 * @kp: not used
1333 *
1334 * This function returns zero in case of success and a negative error code in
1335 * case of error.
1336 */
1/*
2 * Copyright (c) International Business Machines Corp., 2006
3 * Copyright (c) Nokia Corporation, 2007
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

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

1329/**
1330 * ubi_mtd_param_parse - parse the 'mtd=' UBI parameter.
1331 * @val: the parameter value to parse
1332 * @kp: not used
1333 *
1334 * This function returns zero in case of success and a negative error code in
1335 * case of error.
1336 */
1337static int ubi_mtd_param_parse(const char *val, struct kernel_param *kp)
1337static int ubi_mtd_param_parse(const char *val, const struct kernel_param *kp)
1338{
1339 int i, len;
1340 struct mtd_dev_param *p;
1341 char buf[MTD_PARAM_LEN_MAX];
1342 char *pbuf = &buf[0];
1343 char *tokens[MTD_PARAM_MAX_COUNT], *token;
1344
1345 if (!val)

--- 96 unchanged lines hidden ---
1338{
1339 int i, len;
1340 struct mtd_dev_param *p;
1341 char buf[MTD_PARAM_LEN_MAX];
1342 char *pbuf = &buf[0];
1343 char *tokens[MTD_PARAM_MAX_COUNT], *token;
1344
1345 if (!val)

--- 96 unchanged lines hidden ---