Skip to content

Commit 375df5f

Browse files
Michael Schmitzdavem330
authored andcommitted
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: 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 e179d78 commit 375df5f

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ static inline struct ax_device *to_ax_dev(struct net_device *dev)
101101
return (struct ax_device *)(ei_local + 1);
102102
}
103103

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+
104111
/*
105112
* ax_initial_check
106113
*

‎include/net/ax88796.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,7 @@ struct ax_plat_data {
3838
int (*check_irq)(struct platform_device *pdev);
3939
};
4040

41+
/* exported from ax88796.c for xsurf100.c */
42+
extern void ax_NS8390_reinit(struct net_device *dev);
43+
4144
#endif /* __NET_AX88796_PLAT_H */

0 commit comments

Comments
 (0)