From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.phytec.co.uk ([217.6.246.34] helo=root.phytec.de) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TkxvF-0000GF-DN for barebox@lists.infradead.org; Tue, 18 Dec 2012 14:13:37 +0000 From: =?UTF-8?q?Teresa=20G=C3=A1mez?= Date: Tue, 18 Dec 2012 15:13:22 +0100 Message-Id: <1355840005-11408-5-git-send-email-t.gamez@phytec.de> In-Reply-To: <1355840005-11408-1-git-send-email-t.gamez@phytec.de> References: <1355840005-11408-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 4/7] ARM OMAP: Create device file To: barebox@lists.infradead.org Q3JlYXRlZCB3cmFwcGVyIHRvIGFkZCBvbWFwIGRldmljZXMuCgpTaWduZWQtb2ZmLWJ5OiBUZXJl c2EgR8OhbWV6IDx0LmdhbWV6QHBoeXRlYy5kZT4KLS0tCiBhcmNoL2FybS9tYWNoLW9tYXAvTWFr ZWZpbGUgICAgICAgICAgICAgICAgICAgICAgfCAgICA0ICstCiBhcmNoL2FybS9tYWNoLW9tYXAv ZGV2aWNlcy5jICAgICAgICAgICAgICAgICAgICAgfCAgIDY5ICsrKysrKysrKysrKysrKysrKysK IGFyY2gvYXJtL21hY2gtb21hcC9pbmNsdWRlL21hY2gvYW0zM3h4LWRldmljZXMuaCB8ICAgMzYg KysrKysrKysrKwogYXJjaC9hcm0vbWFjaC1vbWFwL2luY2x1ZGUvbWFjaC9kZXZpY2VzLmggICAg ICAgIHwgICAyNyArKysrKysrKwogYXJjaC9hcm0vbWFjaC1vbWFwL2luY2x1ZGUvbWFjaC9vbWFw My1kZXZpY2VzLmggIHwgICA2MCAr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