Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54029
b: refs/heads/master
c: a79220b
h: refs/heads/master
i:
  54027: 0273716
v: v3
  • Loading branch information
Matej Kenda authored and Russell King committed Apr 21, 2007
1 parent 73949a7 commit e71f233
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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: 4fe4a2bf9a687fc87ea796c234da8c59df763aab
refs/heads/master: a79220b7633b3926a9bd3527bdac3f04dbe6845c
6 changes: 4 additions & 2 deletions trunk/drivers/i2c/busses/i2c-pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,9 +839,7 @@ static int i2c_pxa_probe(struct platform_device *dev)
{
struct pxa_i2c *i2c = &i2c_pxa;
struct resource *res;
#ifdef CONFIG_I2C_PXA_SLAVE
struct i2c_pxa_platform_data *plat = dev->dev.platform_data;
#endif
int ret;
int irq;

Expand Down Expand Up @@ -911,6 +909,10 @@ static int i2c_pxa_probe(struct platform_device *dev)
i2c->adap.algo_data = i2c;
i2c->adap.dev.parent = &dev->dev;

if (plat) {
i2c->adap.class = plat->class;
}

ret = i2c_add_adapter(&i2c->adap);
if (ret < 0) {
printk(KERN_INFO "I2C: Failed to add bus\n");
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-arm/arch-pxa/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ struct i2c_slave_client;
struct i2c_pxa_platform_data {
unsigned int slave_addr;
struct i2c_slave_client *slave;
unsigned int class;
};

extern void pxa_set_i2c_info(struct i2c_pxa_platform_data *info);
Expand Down

0 comments on commit e71f233

Please sign in to comment.