
7 Oct
2012
7 Oct
'12
8:21 p.m.
Dear Pavel Herrmann,
Keep all IDE-related hooks and overrides in a single file, to avoid confusion.
Signed-off-by: Pavel Herrmann morpheus.ibis@gmail.com
[...]
+void ide_led(uchar led, uchar status) +{
- u_char val;
- /* We have one PCMCIA slot and use LED H4 for the IDE Interface */
- val = readb(BCSR_BASE + 0x04);
- if (status) { /* led on */
val |= B_CTRL_LED0;
- } else {
val &= ~B_CTRL_LED0;
- }
Remove these {} for conditions with single line expression
- writeb(val, BCSR_BASE + 0x04);
+}
Best regards, Marek Vasut