Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345050
b: refs/heads/master
c: 709edec
h: refs/heads/master
v: v3
  • Loading branch information
Wei Yongjun authored and Samuel Ortiz committed Dec 2, 2012
1 parent 22904e0 commit ce94df4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 3748f193552ba21a8239c56eb616d946c47607e7
refs/heads/master: 709edecd4eaaa210ea9296c6d8ec5e9cedf1abe3
4 changes: 3 additions & 1 deletion trunk/drivers/mfd/sta2x11-mfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,14 @@ u32 __sta2x11_mfd_mask(struct pci_dev *pdev, u32 reg, u32 mask, u32 val,
struct sta2x11_mfd *mfd = sta2x11_mfd_find(pdev);
u32 r;
unsigned long flags;
void __iomem *regs = mfd->regs[index];
void __iomem *regs;

if (!mfd) {
dev_warn(&pdev->dev, ": can't access sctl regs\n");
return 0;
}

regs = mfd->regs[index];
if (!regs) {
dev_warn(&pdev->dev, ": system ctl not initialized\n");
return 0;
Expand Down

0 comments on commit ce94df4

Please sign in to comment.