Skip to content

Commit

Permalink
Merge tag 'gpmc-omap-for-v4.16-immutable' of https://github.com/roger…
Browse files Browse the repository at this point in the history
…q/linux into nand/next

Pull changes needed for omap OneNAND changes from Roger Quadros:

  OMAP-GPMC: driver updates for v4.16
  * Error out only if both 'bank-width' and 'gpmc,device-width' DT properties are missing.
  • Loading branch information
Boris Brezillon committed Jan 12, 2018
2 parents dd53373 + c18a7ac commit d2ad1fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/memory/omap-gpmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2077,8 +2077,9 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
} else {
ret = of_property_read_u32(child, "bank-width",
&gpmc_s.device_width);
if (ret < 0) {
dev_err(&pdev->dev, "%pOF has no 'bank-width' property\n",
if (ret < 0 && !gpmc_s.device_width) {
dev_err(&pdev->dev,
"%pOF has no 'gpmc,device-width' property\n",
child);
goto err;
}
Expand Down

0 comments on commit d2ad1fb

Please sign in to comment.