From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v4 2/3] ARM: mvebu: Add quirk for i2c Date: Wed, 08 Jan 2014 14:44:24 +0100 Message-ID: <5524929.csF5lYbH6h@wuerfel> References: <1389112504-9931-1-git-send-email-gregory.clement@free-electrons.com> <201401081352.57361.arnd@arndb.de> <52CD55D5.6020703@free-electrons.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <52CD55D5.6020703@free-electrons.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Gregory CLEMENT Cc: Thomas Petazzoni , Andrew Lunn , Jason Cooper , Wolfram Sang , stable@vger.kernel.org, linux-i2c@vger.kernel.org, Ezequiel Garcia , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth List-Id: linux-i2c@vger.kernel.org On Wednesday 08 January 2014 14:42:45 Gregory CLEMENT wrote: > You means something like the following code ? > > static void __init armada_370_xp_dt_init(void) > { > + if (of_machine_is_compatible("plathome,openblocks-ax3-4")) > + i2c_quirk(); > of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); > } Yes, that looks like a good way to do it. Arnd