From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.visioncatalog.de ([217.6.246.34] helo=root.phytec.de) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TLWVG-0001a6-Nz for barebox@lists.infradead.org; Tue, 09 Oct 2012 09:53:31 +0000 From: =?UTF-8?q?Teresa=20G=C3=A1mez?= Date: Tue, 9 Oct 2012 11:53:25 +0200 Message-Id: <1349776406-14453-2-git-send-email-t.gamez@phytec.de> In-Reply-To: <1349776406-14453-1-git-send-email-t.gamez@phytec.de> References: <1349776406-14453-1-git-send-email-t.gamez@phytec.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/3] ARM OMAP: Remove usage of gpio lib calls in lowlevel code To: barebox@lists.infradead.org Cc: vicencb@gmail.com QXMgdGhlIGdwaW8gZnVuY3Rpb25zIGFyZSBub3QgYXZhaWxhYmxlIGF0IHRoaXMgcG9pbnQsIHNl dCB0aGUgZ3BpbyBtYW51YWxseS4KClNpZ25lZC1vZmYtYnk6IFRlcmVzYSBHw6FtZXogPHQuZ2Ft ZXpAcGh5dGVjLmRlPgotLS0KIGFyY2gvYXJtL21hY2gtb21hcC9vbWFwNF9nZW5lcmljLmMgfCAg IDI5ICsrKysrKysrKysrKysrKysrKysrKysrKysrKy0tCiAxIGZpbGVzIGNoYW5nZWQsIDI3IGlu c2VydGlvbnMoKyksIDIgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvYXJjaC9hcm0vbWFjaC1v bWFwL29tYXA0X2dlbmVyaWMuYyBiL2FyY2gvYXJtL21hY2gtb21hcC9vbWFwNF9nZW5lcmljLmMK aW5kZXggYTE1OWRmYy4uODFiMzlmOSAxMDA2NDQKLS0tIGEvYXJj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