mtdchar.c (a2cc5ba075f9bc837d0b4d4ec7328dcefc11859d) | mtdchar.c (a750b5ce5e1174ea68f66bf79962c479f7f23998) |
---|---|
1/* 2 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * --- 911 unchanged lines hidden (view full) --- 920 { 921 struct otp_info *buf = kmalloc(4096, GFP_KERNEL); 922 if (!buf) 923 return -ENOMEM; 924 ret = -EOPNOTSUPP; 925 switch (mfi->mode) { 926 case MTD_FILE_MODE_OTP_FACTORY: 927 if (mtd->get_fact_prot_info) | 1/* 2 * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * --- 911 unchanged lines hidden (view full) --- 920 { 921 struct otp_info *buf = kmalloc(4096, GFP_KERNEL); 922 if (!buf) 923 return -ENOMEM; 924 ret = -EOPNOTSUPP; 925 switch (mfi->mode) { 926 case MTD_FILE_MODE_OTP_FACTORY: 927 if (mtd->get_fact_prot_info) |
928 ret = mtd->get_fact_prot_info(mtd, buf, 4096); | 928 ret = mtd_get_fact_prot_info(mtd, buf, 4096); |
929 break; 930 case MTD_FILE_MODE_OTP_USER: 931 if (mtd->get_user_prot_info) 932 ret = mtd->get_user_prot_info(mtd, buf, 4096); 933 break; 934 default: 935 break; 936 } --- 352 unchanged lines hidden --- | 929 break; 930 case MTD_FILE_MODE_OTP_USER: 931 if (mtd->get_user_prot_info) 932 ret = mtd->get_user_prot_info(mtd, buf, 4096); 933 break; 934 default: 935 break; 936 } --- 352 unchanged lines hidden --- |