Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91353
b: refs/heads/master
c: 040b28f
h: refs/heads/master
i:
  91351: 7f1d5e8
v: v3
  • Loading branch information
Ben Nizette authored and Haavard Skinnemoen committed Apr 20, 2008
1 parent c99d72a commit c5954b8
Show file tree
Hide file tree
Showing 3 changed files with 11 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: e573ebb0326f2f4a29ee2bd143bfc88ab0332926
refs/heads/master: 040b28fc0a69281a46adcebd6b31dd74da4a8d49
7 changes: 6 additions & 1 deletion trunk/arch/avr32/mach-at32ap/at32ap700x.c
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,9 @@ static struct clk atmel_twi0_pclk = {
.index = 2,
};

struct platform_device *__init at32_add_device_twi(unsigned int id)
struct platform_device *__init at32_add_device_twi(unsigned int id,
struct i2c_board_info *b,
unsigned int n)
{
struct platform_device *pdev;

Expand All @@ -1010,6 +1012,9 @@ struct platform_device *__init at32_add_device_twi(unsigned int id)

atmel_twi0_pclk.dev = &pdev->dev;

if (b)
i2c_register_board_info(id, b, n);

platform_device_add(pdev);
return pdev;

Expand Down
5 changes: 4 additions & 1 deletion trunk/include/asm-avr32/arch-at32ap/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ struct platform_device *at32_add_device_pwm(u32 mask);
struct platform_device *
at32_add_device_ssc(unsigned int id, unsigned int flags);

struct platform_device *at32_add_device_twi(unsigned int id);
struct i2c_board_info;
struct platform_device *at32_add_device_twi(unsigned int id,
struct i2c_board_info *b,
unsigned int n);
struct platform_device *at32_add_device_mci(unsigned int id);
struct platform_device *at32_add_device_ac97c(unsigned int id);
struct platform_device *at32_add_device_abdac(unsigned int id);
Expand Down

0 comments on commit c5954b8

Please sign in to comment.