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 merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Timyc-0007yO-Bm for barebox@lists.infradead.org; Wed, 12 Dec 2012 14:08:00 +0000 From: Sascha Hauer Date: Wed, 12 Dec 2012 15:07:51 +0100 Message-Id: <1355321271-27915-3-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1355321271-27915-1-git-send-email-s.hauer@pengutronix.de> References: <1355321271-27915-1-git-send-email-s.hauer@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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/2] drivers/base: fix corrupt device tree To: barebox@lists.infradead.org ZGV2X2FkZF9jaGlsZCBpcyBhIHZlcnkgdW5zYWZlIGZ1bmN0aW9uLiBJZiBjYWxsZWQgbXVsdGlw bGUgdGltZXMKaXQgYWxsb3dzIHNldHRpbmcgdGhlIHNhbWUgZGV2aWNlIHRvIGRpZmZlcmVudCBw YXJlbnRzIHRodXMgY29ycnVwdGluZwp0aGUgc2libGluZ3MgbGlzdC4gVGhpcyBoYXBwZW5zIHJl Z3VsYXJseSBzaW5jZToKCnwgY29tbWl0IGMyZTU2OGQxOWM1YzM0YTA1YTEwMDJkMjUyODBiZjEx M2I3MmI3NTIKfCBBdXRob3I6IEplYW4tQ2hyaXN0b3BoZSBQTEFHTklPTC1WSUxMQVJEIDxwbGFn bmlvakBqY3Jvc29mdC5jb20+CnwgRGF0ZTogICBTYXQgTm92IDMgMTY6MTE6MDUgMjAxMiArMDEw MAp8CnwgICAgYnVzOiBhZGQgYnVzIGRldmljZQp8CnwgICAgYXV0b21hdGljYWxseSBhZGQgaXQg YXMgcGFy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