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.90_1 #2 (Red Hat Linux)) id 1gChUE-0005IC-0Y for barebox@lists.infradead.org; Wed, 17 Oct 2018 08:47:37 +0000 From: Sascha Hauer Date: Wed, 17 Oct 2018 10:47:07 +0200 Message-Id: <20181017084707.11878-1-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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] of: fix reproducible node name for legacy vs. new partition binding To: Barebox List dGhlIG9mX3JlcHJvZHVjaWJsZV9uYW1lIG1lY2hhbmlzbSBpcyB1c2VkIHRvIGZpbmQgYSBwYXJ0 aXRpb24gbm9kZQpmcm9tIHRoZSBiYXJlYm94IGRldmljZXRyZWUgaW4gdGhlIExpbnV4IGRldmlj ZXRyZWUuIFVuZm9ydHVuYXRlbHkKd2UgaGF2ZSB0d28gZGlmZmVyZW50IHBhcnRpdGlvbiBiaW5k aW5ncy4gSW4gdGhlIGxlZ2FjeSBvbmUgdGhlIHBhcnRpdGlvbgpub2RlcyBhcmUgZGlyZWN0bHkg dW5kZXIgdGhlIGhhcmR3YXJlIGRldmljZW5vZGUgd2hlcmVhcyBpbiB0aGUgbmV3CmJpbmRpbmcg dGhlIHBhcnRpdGlvbnMgYXJlIHVuZGVyIGFuIGFkZGl0aW9uYWwgcGFydGl0aW9ucyBzdWJub2Rl LgpUaGlzIG1lYW5zIHdlIGdldCB0d28gZGlmZmVyZW50IChub3Qgc28pIHJlcHJvZHVjaWJsZSBu YW1lcyB3aGVuCnRoZSBiYXJlYm94IGRldmljZXRyZWUgdXNlcyB0aGUgbGVnYWN5IGJpbmRpbmcg YW5kIHRoZSBMaW51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