Skip to content

Commit f8ade8d

Browse files
Michael Schmitzdavem330
authored andcommitted
xsurf100: drop include of lib8390.c
Now that ax88796.c exports the ax_NS8390_reinit() symbol, we can include 8390.h instead of lib8390.c, avoiding duplication of that function and killing a few compile warnings in the bargain. Fixes: 861928f ("net-next: New ax88796 platform driver for Amiga X-Surf 100 Zorro board (m68k)") Signed-off-by: Michael Schmitz <schmitzmic@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 375df5f commit f8ade8d

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

‎drivers/net/ethernet/8390/xsurf100.c‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
#define XS100_8390_DATA_WRITE32_BASE 0x0C80
2323
#define XS100_8390_DATA_AREA_SIZE 0x80
2424

25-
#define __NS8390_init ax_NS8390_init
26-
2725
/* force unsigned long back to 'void __iomem *' */
2826
#define ax_convert_addr(_a) ((void __force __iomem *)(_a))
2927

@@ -42,10 +40,7 @@
4240
/* Ensure we have our RCR base value */
4341
#define AX88796_PLATFORM
4442

45-
static unsigned char version[] =
46-
"ax88796.c: Copyright 2005,2007 Simtec Electronics\n";
47-
48-
#include "lib8390.c"
43+
#include "8390.h"
4944

5045
/* from ne.c */
5146
#define NE_CMD EI_SHIFT(0x00)
@@ -232,7 +227,7 @@ static void xs100_block_output(struct net_device *dev, int count,
232227
if (jiffies - dma_start > 2 * HZ / 100) { /* 20ms */
233228
netdev_warn(dev, "timeout waiting for Tx RDC.\n");
234229
ei_local->reset_8390(dev);
235-
ax_NS8390_init(dev, 1);
230+
ax_NS8390_reinit(dev);
236231
break;
237232
}
238233
}

‎init/main.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ trace_initcall_start_cb(void *data, initcall_t fn)
12211221
{
12221222
ktime_t *calltime = (ktime_t *)data;
12231223

1224-
printk(KERN_DEBUG "calling %pS @ %i\n", fn, task_pid_nr(current));
1224+
printk(KERN_DEBUG "calling %pS @ %i irqs_disabled() %d\n", fn, task_pid_nr(current), irqs_disabled());
12251225
*calltime = ktime_get();
12261226
}
12271227

@@ -1235,8 +1235,8 @@ trace_initcall_finish_cb(void *data, initcall_t fn, int ret)
12351235
rettime = ktime_get();
12361236
delta = ktime_sub(rettime, *calltime);
12371237
duration = (unsigned long long) ktime_to_ns(delta) >> 10;
1238-
printk(KERN_DEBUG "initcall %pS returned %d after %lld usecs\n",
1239-
fn, ret, duration);
1238+
printk(KERN_DEBUG "initcall %pS returned %d after %lld usecs, irqs_disabled() %d\n",
1239+
fn, ret, duration, irqs_disabled());
12401240
}
12411241

12421242
static ktime_t initcall_calltime;

0 commit comments

Comments
 (0)