From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.rapiddevelopmentkit.de ([217.6.246.34] helo=root.phytec.de) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TMD9M-0001di-Ps for barebox@lists.infradead.org; Thu, 11 Oct 2012 07:25:47 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 0286EBF0E9 for ; Thu, 11 Oct 2012 09:25:37 +0200 (CEST) From: =?UTF-8?q?Teresa=20G=C3=A1mez?= Date: Thu, 11 Oct 2012 09:25:34 +0200 Message-Id: <1349940335-20960-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 1/2] ARM OMAP: Create device file To: barebox@lists.infradead.org Q3JlYXRlZCB3cmFwcGVyIHRvIGFkZCBvbWFwIGRldmljZXMuCgpTaWduZWQtb2ZmLWJ5OiBUZXJl c2EgR8OhbWV6IDx0LmdhbWV6QHBoeXRlYy5kZT4KLS0tCiBhcmNoL2FybS9tYWNoLW9tYXAvTWFr ZWZpbGUgICAgICAgICAgICAgICB8ICAgIDQgKy0KIGFyY2gvYXJtL21hY2gtb21hcC9kZXZpY2Vz LmMgICAgICAgICAgICAgIHwgICA2NSArKysrKysrKysrKysrKysrKysrKysrKysrKysrKwogYXJj aC9hcm0vbWFjaC1vbWFwL2luY2x1ZGUvbWFjaC9kZXZpY2VzLmggfCAgIDI0ICsrKysrKysrKysr CiAzIGZpbGVzIGNoYW5nZWQsIDkxIGluc2VydGlvbnMoKyksIDIgZGVsZXRpb25zKC0pCiBjcmVh dGUgbW9kZSAxMDA2NDQgYXJjaC9hcm0vbWFjaC1vbWFwL2RldmljZXMuYwogY3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