Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298121
b: refs/heads/master
c: 0dd5235
h: refs/heads/master
i:
  298119: afdaf65
v: v3
  • Loading branch information
Artem Bityutskiy authored and David Woodhouse committed Mar 26, 2012
1 parent c35f8f3 commit 268fa99
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c3faac4a74c2126e2b68f39d6e8791e88b5f7dbe
refs/heads/master: 0dd5235f51fb0eb0b8cef3fed35be39b8a06d7bd
3 changes: 0 additions & 3 deletions trunk/drivers/mtd/devices/mtdram.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ static int ram_erase(struct mtd_info *mtd, struct erase_info *instr)
static int ram_point(struct mtd_info *mtd, loff_t from, size_t len,
size_t *retlen, void **virt, resource_size_t *phys)
{
/* can we return a physical address with this driver? */
if (phys)
return -EINVAL;
*virt = mtd->priv + from;
*retlen = len;
return 0;
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/mtd/devices/phram.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ static int phram_erase(struct mtd_info *mtd, struct erase_info *instr)
static int phram_point(struct mtd_info *mtd, loff_t from, size_t len,
size_t *retlen, void **virt, resource_size_t *phys)
{
/* can we return a physical address with this driver? */
if (phys)
return -EINVAL;

*virt = mtd->priv + from;
*retlen = len;
return 0;
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/mtd/devices/pmc551.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,6 @@ static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len,
printk(KERN_DEBUG "pmc551_point(%ld, %ld)\n", (long)from, (long)len);
#endif

/* can we return a physical address with this driver? */
if (phys)
return -EINVAL;

soff_hi = from & ~(priv->asize - 1);
soff_lo = from & (priv->asize - 1);

Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/mtd/devices/slram.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ static int slram_point(struct mtd_info *mtd, loff_t from, size_t len,
{
slram_priv_t *priv = mtd->priv;

/* can we return a physical address with this driver? */
if (phys)
return -EINVAL;
*virt = priv->start + from;
*retlen = len;
return(0);
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/mtd/mtdcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,9 @@ int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
void **virt, resource_size_t *phys)
{
*retlen = 0;
*virt = NULL;
if (phys)
*phys = 0;
if (!mtd->_point)
return -EOPNOTSUPP;
if (from < 0 || from > mtd->size || len > mtd->size - from)
Expand Down

0 comments on commit 268fa99

Please sign in to comment.