Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303327
b: refs/heads/master
c: d98d033
h: refs/heads/master
i:
  303325: 59f4151
  303323: e84af3c
  303319: 6a59832
  303311: f30d731
  303295: 1e7b2cf
v: v3
  • Loading branch information
Shawn Guo committed May 12, 2012
1 parent 55f09e0 commit 791f2c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39febc018bd26edb9f9f73c0f5ee661de37c7869
refs/heads/master: d98d033c15b77d51ed723ba10c49fa13233e59c1
6 changes: 6 additions & 0 deletions trunk/drivers/i2c/busses/i2c-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/platform_device.h>
#include <linux/jiffies.h>
#include <linux/io.h>
#include <linux/pinctrl/consumer.h>

#include <mach/common.h>

Expand Down Expand Up @@ -323,10 +324,15 @@ static int __devinit mxs_i2c_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct mxs_i2c_dev *i2c;
struct i2c_adapter *adap;
struct pinctrl *pinctrl;
struct resource *res;
resource_size_t res_size;
int err, irq;

pinctrl = devm_pinctrl_get_select_default(dev);
if (IS_ERR(pinctrl))
return PTR_ERR(pinctrl);

i2c = devm_kzalloc(dev, sizeof(struct mxs_i2c_dev), GFP_KERNEL);
if (!i2c)
return -ENOMEM;
Expand Down

0 comments on commit 791f2c9

Please sign in to comment.