Skip to content

Commit

Permalink
ARM: kirkwood: nsa310: cleanup includes and unneeded code
Browse files Browse the repository at this point in the history
After removing the unneeded linux/i2c.h, linux/of.h was needed for
of_machine_is_compatible().  i2c.h had included of.h.

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
  • Loading branch information
Jason Cooper committed Jan 29, 2013
1 parent b96e1b1 commit 92cb762
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions arch/arm/mach-kirkwood/board-nsa310.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@

#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/gpio.h>

#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <mach/kirkwood.h>
#include <linux/of.h>
#include "common.h"
#include "mpp.h"

Expand Down Expand Up @@ -79,14 +76,10 @@ static void __init nsa310_gpio_init(void)

void __init nsa310_init(void)
{
u32 dev, rev;

kirkwood_mpp_conf(nsa310_mpp_config);

nsa310_gpio_init();

kirkwood_pcie_id(&dev, &rev);

i2c_register_board_info(0, ARRAY_AND_SIZE(nsa310_i2c_info));
}

Expand Down

0 comments on commit 92cb762

Please sign in to comment.