From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp5-g21.free.fr ([2a01:e0c:1:1599::14]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VpEKI-0004qe-PN for barebox@lists.infradead.org; Sat, 07 Dec 2013 09:37:32 +0000 Received: from localhost.localdomain (unknown [82.233.81.124]) by smtp5-g21.free.fr (Postfix) with ESMTP id 73F0CD480D5 for ; Sat, 7 Dec 2013 10:37:02 +0100 (CET) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Sat, 7 Dec 2013 10:36:54 +0100 Message-Id: <1386409020-11914-1-git-send-email-eric@eukrea.com> 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 1/7] atmel_nand: check gpio validity before using it To: barebox@lists.infradead.org ZWxzZSB3ZSBnZXQgOiAiaW52YWxpZCBHUElPIC0yMiIKKGFzIGVuYWJsZV9waW4gaXMgRUlOVkFM KQoKdGVzdGVkIG9uIFNBTUE1RDM1CgpTaWduZWQtb2ZmLWJ5OiBFcmljIELDqW5hcmQgPGVyaWNA ZXVrcmVhLmNvbT4KLS0tCiBkcml2ZXJzL210ZC9uYW5kL2F0bWVsX25hbmQuYyB8IDQgKystLQog MSBmaWxlIGNoYW5nZWQsIDIgaW5zZXJ0aW9ucygrKSwgMiBkZWxldGlvbnMoLSkKCmRpZmYgLS1n aXQgYS9kcml2ZXJzL210ZC9uYW5kL2F0bWVsX25hbmQuYyBiL2RyaXZlcnMvbXRkL25hbmQvYXRt ZWxfbmFuZC5jCmluZGV4IGEwZjA5NjYuLjY1OGFlNTIgMTAwNjQ0Ci0tLSBhL2RyaXZlcnMvbXRk L25hbmQvYXRtZWxfbmFuZC5jCisrKyBiL2RyaXZlcnMvbXRkL25hbmQvYX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