From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 63.mail-out.ovh.net ([91.121.185.56]) by canuck.infradead.org with smtp (Exim 4.72 #1 (Red Hat Linux)) id 1PD0KU-0004KR-MG for barebox@lists.infradead.org; Mon, 01 Nov 2010 19:46:08 +0000 From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Mon, 1 Nov 2010 20:46:00 +0100 Message-Id: <1288640760-1698-1-git-send-email-eric@eukrea.com> 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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] armlinux: pass INIRTD tag to the kernel To: s.hauer@pengutronix.de Cc: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogRXJpYyBCw6luYXJkIDxlcmljQGV1a3JlYS5jb20+Ci0tLQogYXJjaC9h cm0vbGliL2FybWxpbnV4LmMgfCAgIDMwICsrKysrKysrKysrKysrKystLS0tLS0tLS0tLS0tLQog MSBmaWxlcyBjaGFuZ2VkLCAxNiBpbnNlcnRpb25zKCspLCAxNCBkZWxldGlvbnMoLSkKCmRpZmYg LS1naXQgYS9hcmNoL2FybS9saWIvYXJtbGludXguYyBiL2FyY2gvYXJtL2xpYi9hcm1saW51eC5j CmluZGV4IGY2OTBmZWYuLjAyMjIzMjcgMTAwNjQ0Ci0tLSBhL2FyY2gvYXJtL2xpYi9hcm1saW51 eC5jCisrKyBiL2FyY2gvYXJtL2xpYi9hcm1saW51eC5jCkBAIC0xMzUsOCArMTM1LDcgQEAgc3Rh dGljIHZvaWQgc2V0dXBfc2VyaWFsX3RhZyh2b2lkKQogCX0KIH0KIAotI2lmIDAKLXN0YXRpYyB2 b2lkIHNldHVwX2luaXRyZF90YWcodWxvbmcgaW5pdHJkX3N0YXJ0LCB1bG9uZyBpbml0cmRfZW5k KQor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