From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.x-arc.de ([217.6.246.34] helo=root.phytec.de) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uq0nb-0001RT-RG for barebox@lists.infradead.org; Fri, 21 Jun 2013 12:50:45 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 11419BF0EC for ; Fri, 21 Jun 2013 14:45:28 +0200 (CEST) From: =?UTF-8?q?Teresa=20G=C3=A1mez?= Date: Fri, 21 Jun 2013 14:50:18 +0200 Message-Id: <1371819019-13596-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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/2] i2c-omap: Remove cpu_is functions completely To: barebox@lists.infradead.org VGhpcyBwYXRjaCByZW1vdmVzIHRoZSBjYWxsIG9mIHRoZSBjcHVfaXNfKiBmdW5jdGlvbnMgY29t cGxldGVseQphbmQgdXNlcyBpZF90YWJsZXMgaW5zdGVhZC4KClNpZ25lZC1vZmYtYnk6IFRlcmVz YSBHw6FtZXogPHQuZ2FtZXpAcGh5dGVjLmRlPgotLS0KIGRyaXZlcnMvaTJjL2J1c3Nlcy9pMmMt b21hcC5jIHwgICA4OSArKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrLS0tLS0tLS0tLQog MSBmaWxlcyBjaGFuZ2VkLCA2NyBpbnNlcnRpb25zKCspLCAyMiBkZWxldGlvbnMoLSkKCmRpZmYg LS1naXQgYS9kcml2ZXJzL2kyYy9idXNzZXMvaTJjLW9tYXAuYyBiL2RyaXZlcnMvaTJjL2J1c3Nl cy9pMmMtb21hcC5jCmluZGV4IDE5ZDU0ZWUuLmIyYTc0YzAgMTAwNjQ0Ci0tL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