From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eHSBR-0007H5-1Q for barebox@lists.infradead.org; Wed, 22 Nov 2017 10:23:12 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Wed, 22 Nov 2017 11:22:28 +0100 Message-Id: <20171122102231.16872-4-u.kleine-koenig@pengutronix.de> In-Reply-To: <20171122102231.16872-1-u.kleine-koenig@pengutronix.de> References: <20171122102231.16872-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/6] net/e1000: reorder functions To: barebox@lists.infradead.org Cc: Andrey Smirnov QnJpbmcgZnVuY3Rpb25zIGluIGEgbW9yZSBuYXR1cmFsIG9yZGVyIHdoaWNoIGFsbG93cyB0byBk cm9wIGEgZmV3CmZvcndhcmQgZGVjbGFyYXRpb25zLgoKU2lnbmVkLW9mZi1ieTogVXdlIEtsZWlu ZS1Lw7ZuaWcgPHUua2xlaW5lLWtvZW5pZ0BwZW5ndXRyb25peC5kZT4KLS0tCiBkcml2ZXJzL25l dC9lMTAwMC9lZXByb20uYyB8IDEzNyArKysrKysrKysrKysrKysrKysrKysrLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0KIDEgZmlsZSBjaGFuZ2VkLCA2NyBpbnNlcnRpb25zKCspLCA3MCBkZWxldGlv bnMoLSkKCmRpZmYgLS1naXQgYS9kcml2ZXJzL25ldC9lMTAwMC9lZXByb20uYyBiL2RyaXZlcnMv bmV0L2UxMDAwL2VlcHJvbS5jCmluZGV4IDE1MGU0MTQ3YzQ2OS4uOTk0OGE4Yz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