From patchwork Fri May 1 10:59:32 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Bogendoerfer X-Patchwork-Id: 26757 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 57A3FB7081 for ; Fri, 1 May 2009 22:45:02 +1000 (EST) Received: by ozlabs.org (Postfix) id 460CADDDF3; Fri, 1 May 2009 22:45:02 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id CE4E4DDDB6 for ; Fri, 1 May 2009 22:45:01 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755529AbZEAMo4 (ORCPT ); Fri, 1 May 2009 08:44:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754951AbZEAMo4 (ORCPT ); Fri, 1 May 2009 08:44:56 -0400 Received: from elvis.franken.de ([193.175.24.41]:44987 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbZEAMoz (ORCPT ); Fri, 1 May 2009 08:44:55 -0400 X-Greylist: delayed 6318 seconds by postgrey-1.27 at vger.kernel.org; Fri, 01 May 2009 08:44:55 EDT Received: from uucp (helo=solo.franken.de) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1LzqSv-0008QG-00 for netdev@vger.kernel.org; Fri, 01 May 2009 12:59:37 +0200 Received: by solo.franken.de (Postfix, from userid 1000) id 7EC47C3C8B; Fri, 1 May 2009 12:59:32 +0200 (CEST) From: Thomas Bogendoerfer To: netdev@vger.kernel.org Subject: [PATCH] switch sgiseeq to netdev_ops Message-Id: <20090501105932.7EC47C3C8B@solo.franken.de> Date: Fri, 1 May 2009 12:59:32 +0200 (CEST) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Thomas Bogendoerfer --- drivers/net/sgiseeq.c | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/sgiseeq.c b/drivers/net/sgiseeq.c index 97d6856..ca1b109 100644 --- a/drivers/net/sgiseeq.c +++ b/drivers/net/sgiseeq.c @@ -709,6 +709,17 @@ static inline void setup_rx_ring(struct net_device *dev, dma_sync_desc_dev(dev, &buf[i]); } +static const struct net_device_ops sgiseeq_netdev_ops = { + .ndo_open = sgiseeq_open, + .ndo_stop = sgiseeq_close, + .ndo_start_xmit = sgiseeq_start_xmit, + .ndo_tx_timeout = timeout, + .ndo_set_multicast_list = sgiseeq_set_multicast, + .ndo_change_mtu = eth_change_mtu, + .ndo_set_mac_address = sgiseeq_set_mac_address, + .ndo_validate_addr = eth_validate_addr, +}; + static int __init sgiseeq_probe(struct platform_device *pdev) { struct sgiseeq_platform_data *pd = pdev->dev.platform_data; @@ -775,13 +786,8 @@ static int __init sgiseeq_probe(struct platform_device *pdev) SEEQ_CTRL_SFLAG | SEEQ_CTRL_ESHORT | SEEQ_CTRL_ENCARR; - dev->open = sgiseeq_open; - dev->stop = sgiseeq_close; - dev->hard_start_xmit = sgiseeq_start_xmit; - dev->tx_timeout = timeout; + dev->netdev_ops = &sgiseeq_netdev_ops; dev->watchdog_timeo = (200 * HZ) / 1000; - dev->set_multicast_list = sgiseeq_set_multicast; - dev->set_mac_address = sgiseeq_set_mac_address; dev->irq = irq; if (register_netdev(dev)) {