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 1WjndY-00075R-8I for barebox@lists.infradead.org; Mon, 12 May 2014 10:39:13 +0000 Date: Mon, 12 May 2014 12:38:50 +0200 From: Sascha Hauer Message-ID: <20140512103850.GF5858@pengutronix.de> References: <1399534299-27051-1-git-send-email-s.hauer@pengutronix.de> <1399534299-27051-3-git-send-email-s.hauer@pengutronix.de> <1399834166.925793804@f410.i.mail.ru> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1399834166.925793804@f410.i.mail.ru> 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: Re: [PATCH 2/5] spi: i.MX: Move to coredevice_initcall To: Alexander Shiyan Cc: barebox@lists.infradead.org T24gU3VuLCBNYXkgMTEsIDIwMTQgYXQgMTA6NDk6MjZQTSArMDQwMCwgQWxleGFuZGVyIFNoaXlh biB3cm90ZToKPiBUaHUsICA4IE1heSAyMDE0IDA5OjMxOjM2ICswMjAwINC+0YIgU2FzY2hhIEhh dWVyIDxzLmhhdWVyQHBlbmd1dHJvbml4LmRlPjoKPiA+IFNQSSBpcyBvZnRlbiB1c2VkIGJ5IG90 aGVyIGRldmljZXMsIHNvIG1ha2Ugc3VyZSBpdCdzIGluaXRpYWxpemVkCj4gPiBlYXJseS4KPiA+ IAo+ID4gU2lnbmVkLW9mZi1ieTogU2FzY2hhIEhhdWVyIDxzLmhhdWVyQHBlbmd1dHJvbml4LmRl Pgo+ID4gLS0tCj4gPiAgZHJpdmVycy9zcGkvaW14X3NwaS5jIHwgMiArLQo+ID4gIDEgZmlsZSBj aGFuZ2VkLCAxIGluc2VydGlvbigrKSwg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