Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ax88796: export ax_NS8390_init() hook

The block I/O code for the new X-Surf 100 ax88796 driver needs
ax_NS8390_init() for error fixup in its block_output function.

Export this static function through the ax_NS8390_reinit()
wrapper so we can lose the lib8380.c include in the X-Surf 100
driver.

[arnd: add the declaration in the header to avoid a
-Wmissing-prototypes warning]
Fixes: 861928f4e60e826c ("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>

authored by

Michael Schmitz and committed by
David S. Miller
375df5f8 e179d78e

+10
+7
drivers/net/ethernet/8390/ax88796.c
··· 101 101 return (struct ax_device *)(ei_local + 1); 102 102 } 103 103 104 + void ax_NS8390_reinit(struct net_device *dev) 105 + { 106 + ax_NS8390_init(dev, 1); 107 + } 108 + 109 + EXPORT_SYMBOL_GPL(ax_NS8390_reinit); 110 + 104 111 /* 105 112 * ax_initial_check 106 113 *
+3
include/net/ax88796.h
··· 38 38 int (*check_irq)(struct platform_device *pdev); 39 39 }; 40 40 41 + /* exported from ax88796.c for xsurf100.c */ 42 + extern void ax_NS8390_reinit(struct net_device *dev); 43 + 41 44 #endif /* __NET_AX88796_PLAT_H */