From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YtZ8T-0001Xg-5t for barebox@lists.infradead.org; Sat, 16 May 2015 10:16:01 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Sat, 16 May 2015 12:15:27 +0200 Message-Id: <1431771327-27442-1-git-send-email-u.kleine-koenig@pengutronix.de> In-Reply-To: <1431511952-32124-6-git-send-email-mkl@pengutronix.de> References: <1431511952-32124-6-git-send-email-mkl@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] fixup! state: add fixup to copy state from barebox to kernel device tree To: barebox@lists.infradead.org, Marc Kleine-Budde b2ZfdW5yZWdpc3Rlcl9maXh1cCBtdXN0IGFsc28gYmUgY2FsbGVkIGluIHRoZSByZWxlYXNlIGZ1 bmN0aW9uLgoKU2lnbmVkLW9mZi1ieTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUua2xlaW5lLWtvZW5p Z0BwZW5ndXRyb25peC5kZT4KLS0tClRoaXMgZGVwZW5kcyBvbiB0aGUgcGF0Y2ggIm9mOiBhZGQg YSBmdW5jdGlvbiB0byByZW1vdmUgYW4gb2ZfZml4dXAiIEkKanVzdCBzZW50IHRvIHRoZSBsaXN0 Ci0tLQogY29tbW9uL3N0YXRlLmMgfCAxNSArKysrKysrKy0tLS0tLS0KIDEgZmlsZSBjaGFuZ2Vk LCA4IGluc2VydGlvbnMoKyksIDcgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvY29tbW9uL3N0 YXRlLmMgYi9jb21tb24vc3RhdGUuYwppbmRleCBmYjE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