brcm63xx: fix an OOPS when accessing the basemode register on 6368
The bcm6368 pinctrl driver passed the wrong variable to devm_regmap_field_alloc, causing it to blow up when later trying to access the field. Fixes #1211. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
This commit is contained in:
parent
ef1f6092e0
commit
a8d3d517d0
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
|
|||
+ if (!pctl)
|
||||
+ return -ENOMEM;
|
||||
+
|
||||
+ pctl->overlay = devm_regmap_field_alloc(&pdev->dev, mode, overlay);
|
||||
+ pctl->overlay = devm_regmap_field_alloc(&pdev->dev, basemode, overlay);
|
||||
+ if (IS_ERR(pctl->overlay))
|
||||
+ return PTR_ERR(pctl->overlay);
|
||||
+
|
||||
|
|
Loading…
Reference in a new issue