mtdconcat.c (5942ddbc500d1c9b75e571b656be97f65b26adfe) | mtdconcat.c (cd621274b0ec747db8dedbf857624c067f481976) |
---|---|
1/* 2 * MTD device concatenation layer 3 * 4 * Copyright © 2002 Robert Kaiser <rkaiser@sysgo.de> 5 * Copyright © 2002-2010 David Woodhouse <dwmw2@infradead.org> 6 * 7 * NAND support by Christian Gan <cgan@iders.ca> 8 * --- 712 unchanged lines hidden (view full) --- 721 offset -= subdev->size; 722 continue; 723 } 724 725 /* we've found the subdev over which the mapping will reside */ 726 if (offset + len > subdev->size) 727 return (unsigned long) -EINVAL; 728 | 1/* 2 * MTD device concatenation layer 3 * 4 * Copyright © 2002 Robert Kaiser <rkaiser@sysgo.de> 5 * Copyright © 2002-2010 David Woodhouse <dwmw2@infradead.org> 6 * 7 * NAND support by Christian Gan <cgan@iders.ca> 8 * --- 712 unchanged lines hidden (view full) --- 721 offset -= subdev->size; 722 continue; 723 } 724 725 /* we've found the subdev over which the mapping will reside */ 726 if (offset + len > subdev->size) 727 return (unsigned long) -EINVAL; 728 |
729 if (subdev->get_unmapped_area) 730 return mtd_get_unmapped_area(subdev, len, offset, 731 flags); 732 733 break; | 729 return mtd_get_unmapped_area(subdev, len, offset, flags); |
734 } 735 736 return (unsigned long) -ENOSYS; 737} 738 739/* 740 * This function constructs a virtual MTD device by concatenating 741 * num_devs MTD devices. A pointer to the new device object is --- 278 unchanged lines hidden --- | 730 } 731 732 return (unsigned long) -ENOSYS; 733} 734 735/* 736 * This function constructs a virtual MTD device by concatenating 737 * num_devs MTD devices. A pointer to the new device object is --- 278 unchanged lines hidden --- |