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.85_2 #1 (Red Hat Linux)) id 1cKMQa-0005l3-4R for barebox@lists.infradead.org; Fri, 23 Dec 2016 09:46:16 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Fri, 23 Dec 2016 10:45:49 +0100 Message-Id: <20161223094549.3311-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] ata: pata-imx: simplify assignment of device name To: barebox@lists.infradead.org SWYgT0ZfREVWSUNFIGlzbid0IGVuYWJsZWQsIG9mX2FsaWFzX2dldCByZXR1cm5zIE5VTEwuIEFs c28geHN0cmR1cApyZXR1cm5zIE5VTEwgd2hlbiBOVUxMIGlzIHBhc3NlZCBhcyBhcmd1bWVudC4g VGhpcyBhbGxvd3MgdG8gc2ltcGxpZnkKYWNjb3JkaW5nbHkuCgpTaWduZWQtb2ZmLWJ5OiBVd2Ug S2xlaW5lLUvDtm5pZyA8dS5rbGVpbmUta29lbmlnQHBlbmd1dHJvbml4LmRlPgotLS0KIGRyaXZl cnMvYXRhL3BhdGEtaW14LmMgfCA4ICstLS0tLS0tCiAxIGZpbGUgY2hhbmdlZCwgMSBpbnNlcnRp b24oKyksIDcgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvZHJpdmVycy9hdGEvcGF0YS1pbXgu YyBiL2RyaXZlcnMvYXRhL3BhdGEtaW14LmMKaW5kZXggYzgwOThhNTM3ZmU1Li40Zjc1MDQ4YzEy Y2UgMTAwNjQ0Ci0tLSBhL2RyaXZlcnMvYXRhL3BhdGEtaW14LmMKKysrIGI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