}
};
-int rb750_latch_change(u32 mask_clr, u32 mask_set)
+static void rb750_latch_change(u32 mask_clr, u32 mask_set)
{
static DEFINE_SPINLOCK(lock);
static u32 latch_set = RB750_LED_BITS | RB750_LVC573_LE;
static u32 latch_clr;
unsigned long flags;
u32 t;
- int ret = 0;
spin_lock_irqsave(&lock, flags);
__raw_readl(base + AR71XX_GPIO_REG_CLEAR);
}
- ret = 1;
-
unlock:
spin_unlock_irqrestore(&lock, flags);
- return ret;
}
-EXPORT_SYMBOL_GPL(rb750_latch_change);
static void rb750_nand_enable_pins(void)
{
rb750_latch_change(0, RB750_LVC573_LE);
}
-static void rb750_nand_latch_change(u32 clear, u32 set)
-{
- rb750_latch_change(clear, set);
-}
-
static void __init rb750_setup(void)
{
ath79_gpio_function_disable(AR724X_GPIO_FUNC_ETH_SWITCH_LED0_EN |
rb750_leds_data.num_leds = ARRAY_SIZE(rb750_leds);
rb750_leds_data.leds = rb750_leds;
- rb750_leds_data.latch_change = rb750_nand_latch_change;
+ rb750_leds_data.latch_change = rb750_latch_change;
platform_device_register(&rb750_leds_device);
rb750_nand_data.nce_line = RB750_NAND_NCE;
rb750_nand_data.enable_pins = rb750_nand_enable_pins;
rb750_nand_data.disable_pins = rb750_nand_disable_pins;
- rb750_nand_data.latch_change = rb750_nand_latch_change;
+ rb750_nand_data.latch_change = rb750_latch_change;
platform_device_register(&rb750_nand_device);
}