Commit d9d60df7 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

little cleanup

parent 8686c289
......@@ -153,7 +153,6 @@ static int elphel393_init_probe(struct platform_device *pdev)
loff_t *ppos;
loff_t pos;
int ret;
char *test;
char *ps,*pe;
......@@ -218,16 +217,6 @@ static int elphel393_init_probe(struct platform_device *pdev)
if (!boardinfo)
return -ENOMEM;
//serial = kmalloc(13,GFP_KERNEL);
//if (!serial)
// return -ENOMEM;
// tmp buffer
//kbuf = kmalloc(size,GFP_KERNEL);
//if (!kbuf)
// return -ENOMEM;
len = min_t(size_t,count, size);
ret = mtd_read_user_prot_reg(mtd, *ppos, len, &retlen, kbuf);
......@@ -245,29 +234,13 @@ static int elphel393_init_probe(struct platform_device *pdev)
ps = strnstr(kbuf,"<rev>",size);
pe = strnstr(kbuf,"</rev>",size);
*ppos += retlen;
count -= retlen;
//look in the nand drivers how to do this:
//read the factory info string from NAND flash otp area - look in the 1st page?
//parse the string:
//string start 1st occurence of <board>
//string end 1st occurence of </board>
//parse all of the entries
//struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, uint8_t *buf
return 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment