accidentally #if was used instead of #ifdef, thus gcc warned
about CONFIG_ATA_LEDS being undefined...
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 43786
return block;
}
-+#if CONFIG_ATA_LEDS
++#ifdef CONFIG_ATA_LEDS
+#define LIBATA_BLINK_DELAY 20 /* ms */
+static inline void ata_led_act(struct ata_port *ap)
+{
break;
}
}
-+#if CONFIG_ATA_LEDS
++#ifdef CONFIG_ATA_LEDS
+ ata_led_act(ap);
+#endif
ap->stats.unhandled_irq = 1;
ap->stats.idle_irq = 1;
#endif
-+#if CONFIG_ATA_LEDS
++#ifdef CONFIG_ATA_LEDS
+ ap->ledtrig = kzalloc(sizeof(struct led_trigger), GFP_KERNEL);
+#endif
ata_sff_port_init(ap);
kfree(ap->pmp_link);
kfree(ap->slave_link);
-+#if CONFIG_ATA_LEDS
++#ifdef CONFIG_ATA_LEDS
+ if (ap->ledtrig) {
+ led_trigger_unregister(ap->ledtrig);
+ kfree(ap->ledtrig);
host->ports[i]->print_id = atomic_inc_return(&ata_print_id);
host->ports[i]->local_port_no = i + 1;
}
-+#if CONFIG_ATA_LEDS
++#ifdef CONFIG_ATA_LEDS
+ for (i = 0; i < host->n_ports; i++) {
+ if (unlikely(!host->ports[i]->ledtrig))
+ continue;
return block;
}
-+#if CONFIG_ATA_LEDS
++#ifdef CONFIG_ATA_LEDS
+#define LIBATA_BLINK_DELAY 20 /* ms */
+static inline void ata_led_act(struct ata_port *ap)
+{
break;
}
}
-+#if CONFIG_ATA_LEDS
++#ifdef CONFIG_ATA_LEDS
+ ata_led_act(ap);
+#endif
ap->stats.unhandled_irq = 1;
ap->stats.idle_irq = 1;
#endif
-+#if CONFIG_ATA_LEDS
++#ifdef CONFIG_ATA_LEDS
+ ap->ledtrig = kzalloc(sizeof(struct led_trigger), GFP_KERNEL);
+#endif
ata_sff_port_init(ap);
kfree(ap->pmp_link);
kfree(ap->slave_link);
-+#if CONFIG_ATA_LEDS
++#ifdef CONFIG_ATA_LEDS
+ if (ap->ledtrig) {
+ led_trigger_unregister(ap->ledtrig);
+ kfree(ap->ledtrig);
host->ports[i]->print_id = atomic_inc_return(&ata_print_id);
host->ports[i]->local_port_no = i + 1;
}
-+#if CONFIG_ATA_LEDS
++#ifdef CONFIG_ATA_LEDS
+ for (i = 0; i < host->n_ports; i++) {
+ if (unlikely(!host->ports[i]->ledtrig))
+ continue;