Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321269
b: refs/heads/master
c: 55650d4
h: refs/heads/master
i:
  321267: 91fc509
v: v3
  • Loading branch information
Andrew Lunn committed Jul 27, 2012
1 parent d193911 commit 4823e3c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 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: 2cef1a2853aece830586453296e413240961a42b
refs/heads/master: 55650d4e5b0b8de785e4682f4149951e2ce0e731
8 changes: 8 additions & 0 deletions trunk/arch/arm/boot/dts/kirkwood-dns325.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
};

ocp@f1000000 {
i2c@11000 {
status = "okay";

lm75: lm75@48 {
compatible = "national,lm75";
reg = <0x48>;
};
};
serial@12000 {
clock-frequency = <200000000>;
status = "okay";
Expand Down
15 changes: 2 additions & 13 deletions trunk/arch/arm/mach-kirkwood/board-dnskw.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <linux/ata_platform.h>
#include <linux/mv643xx_eth.h>
#include <linux/of.h>
Expand Down Expand Up @@ -153,13 +152,6 @@ static struct platform_device dns320_led_device = {
},
};

static struct i2c_board_info dns325_i2c_board_info[] __initdata = {
{
I2C_BOARD_INFO("lm75", 0x48),
},
/* Something at 0x0c also */
};

static struct gpio_keys_button dnskw_button_pins[] = {
{
.code = KEY_POWER,
Expand Down Expand Up @@ -241,17 +233,14 @@ void __init dnskw_init(void)

kirkwood_ehci_init();
kirkwood_ge00_init(&dnskw_ge00_data);
kirkwood_i2c_init();

platform_device_register(&dnskw_button_device);
platform_device_register(&dnskw_fan_device);

if (of_machine_is_compatible("dlink,dns-325")) {
i2c_register_board_info(0, dns325_i2c_board_info,
ARRAY_SIZE(dns325_i2c_board_info));
if (of_machine_is_compatible("dlink,dns-325"))
platform_device_register(&dns325_led_device);

} else if (of_machine_is_compatible("dlink,dns-320"))
else if (of_machine_is_compatible("dlink,dns-320"))
platform_device_register(&dns320_led_device);

/* Register power-off GPIO. */
Expand Down

0 comments on commit 4823e3c

Please sign in to comment.