提交 efdbc1a7 编写于 作者: D David S. Miller

[SUNLANCE]: Mark sparc_lance_probe_one as __devinit.

Fixes section mismatch warnings when built as a module.

Also, mark find_ledma and sun4 init function as __devinit
too.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a4c0291a
...@@ -1323,9 +1323,9 @@ static const struct ethtool_ops sparc_lance_ethtool_ops = { ...@@ -1323,9 +1323,9 @@ static const struct ethtool_ops sparc_lance_ethtool_ops = {
.get_link = sparc_lance_get_link, .get_link = sparc_lance_get_link,
}; };
static int __init sparc_lance_probe_one(struct sbus_dev *sdev, static int __devinit sparc_lance_probe_one(struct sbus_dev *sdev,
struct sbus_dma *ledma, struct sbus_dma *ledma,
struct sbus_dev *lebuffer) struct sbus_dev *lebuffer)
{ {
static unsigned version_printed; static unsigned version_printed;
struct net_device *dev; struct net_device *dev;
...@@ -1515,7 +1515,7 @@ static int __init sparc_lance_probe_one(struct sbus_dev *sdev, ...@@ -1515,7 +1515,7 @@ static int __init sparc_lance_probe_one(struct sbus_dev *sdev,
} }
/* On 4m, find the associated dma for the lance chip */ /* On 4m, find the associated dma for the lance chip */
static inline struct sbus_dma *find_ledma(struct sbus_dev *sdev) static struct sbus_dma * __devinit find_ledma(struct sbus_dev *sdev)
{ {
struct sbus_dma *p; struct sbus_dma *p;
...@@ -1533,7 +1533,7 @@ static inline struct sbus_dma *find_ledma(struct sbus_dev *sdev) ...@@ -1533,7 +1533,7 @@ static inline struct sbus_dma *find_ledma(struct sbus_dev *sdev)
/* Find all the lance cards on the system and initialize them */ /* Find all the lance cards on the system and initialize them */
static struct sbus_dev sun4_sdev; static struct sbus_dev sun4_sdev;
static int __init sparc_lance_init(void) static int __devinit sparc_lance_init(void)
{ {
if ((idprom->id_machtype == (SM_SUN4|SM_4_330)) || if ((idprom->id_machtype == (SM_SUN4|SM_4_330)) ||
(idprom->id_machtype == (SM_SUN4|SM_4_470))) { (idprom->id_machtype == (SM_SUN4|SM_4_470))) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册