From patchwork Tue Feb 28 16:01:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9596123 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A0722600CB for ; Tue, 28 Feb 2017 16:05:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 901A626E4D for ; Tue, 28 Feb 2017 16:05:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 834942855B; Tue, 28 Feb 2017 16:05:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DA1D828551 for ; Tue, 28 Feb 2017 16:05:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Vt70OVP+21k3RKoUmKCvjZ51sXrKdxTQ73ShXorIX4w=; b=LVuxg/6NcD2b3gWmTJnGPD76GR GEbTrwwh8E4Okcj6O7dFvSJzKxX3cn25HocOKf17r/IfLkbjiGw43QsEA37s0ZVIzROs9yef39gqM lRBtJfOJrs81I+OMJOXvQLABeMh/JAZAHosPy87PhaCYLccVT3qtj5KYYr3xqvDIXodszOuOAo5Bk 78A6k7TzZqgSfLnAS+Ty5K+SB9gyalBejP0rbHbQXM5DTh88FcuJ+mCYur/h0I8Lt7FPU896lqj2k 3vwaQSZ6scnTUa6qQR1cMlG5oiXds32JCOgSWuTDNFsVC99yMfsvsmQ15gOyW5RgJtM7Xdr/FW1+1 R5DCpRdQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cikHj-0006r1-AQ; Tue, 28 Feb 2017 16:05:55 +0000 Received: from mail-wr0-x233.google.com ([2a00:1450:400c:c0c::233]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cikEO-0004FJ-CR for linux-arm-kernel@lists.infradead.org; Tue, 28 Feb 2017 16:02:33 +0000 Received: by mail-wr0-x233.google.com with SMTP id u48so11933874wrc.0 for ; Tue, 28 Feb 2017 08:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xW80H39cjmYxCovRKkoPVxqm+3CF+/uxTIej9n8pyF8=; b=Lnh2XrD4UXwYENCdxM8KGoCdntsy2X8XtwJWfJQUPij/kK1s3QeAr2yv+frcUUh4ZP ZNBLNc7DmGD49nI1EcvYVGhc5M+iBI99IxN1on3NjB8wzIjt3yA/VUJd60N/TE2PbRDd 6/64zBwq4S6mmnOhYF7EjdpSyYPuOHRnikhru5u6T5lQpwNYF+aOVMQdgHGwD2H4OmIU Mg6dtxcTzhNlzAOcXa87GB6NMhr1HVtsEf3N8kSfDYTy+pk4xz6wjFIoAMihcNYTThU9 l0/sqXLezGwe9QHirjHRyKAbaM4wcBgBY2NgF2FAucLKX02fjxKrM2dUcoueFP+tF0YL A6Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xW80H39cjmYxCovRKkoPVxqm+3CF+/uxTIej9n8pyF8=; b=qSVJOGcJga/ZlM6PaOn+DCXIG8DhAyLOuEFo5TY460A/qeEnxgsCMIZn27AprPpuhN 7H+nt6u6BceVvo2De6ZIwgheBP5ycfnqjUC347spyCIU5FsHYt8d5JiTtaj7Tb6A2U4r xYIO7GK3W4vWG9RfC33d0TJOzgVoZ/zx96LMnpPQMTHgUqz3KYabE11RXQz5yoeVmn6h dFjQ5PyBR2EuqhWfFblsBSfYnSUFPbvsap15ZKIsQ8PlJsu3zJTHXVQW/Tn5haYsfyMM 4I2FT8MHLQ13cnxPcuJS/eCma+JHYhVUzzlnyJOvaFhMNBehJ65/eX/7GzcCnsSGx0ZL 4hXw== X-Gm-Message-State: AMke39lSdqPXnVv+j86ABb9uKNX0P2SQhcuCr7tzEMmUSAsKySclDDGZ2NpKWWQtrjb/O+Ye X-Received: by 10.223.163.142 with SMTP id l14mr3266759wrb.35.1488297726539; Tue, 28 Feb 2017 08:02:06 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id k8sm2887327wre.19.2017.02.28.08.02.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Feb 2017 08:02:05 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , David Lechner , Kevin Hilman , Michael Turquette , Patrick Titiano , Laurent Pinchart , Russell King Subject: [PATCH v4 1/6] ARM: davinci: da8xx: allow having multiple pdata-quirks Date: Tue, 28 Feb 2017 17:01:55 +0100 Message-Id: <1488297720-4558-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1488297720-4558-1-git-send-email-bgolaszewski@baylibre.com> References: <1488297720-4558-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170228_080228_603521_F6DF397E X-CRM114-Status: GOOD ( 10.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP We currently bail-out after applying a single quirk. We will want to reuse the function doing the vpif capture registration so remove the break; and continue iterating over the quirk array. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/pdata-quirks.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-davinci/pdata-quirks.c b/arch/arm/mach-davinci/pdata-quirks.c index 5b57da4..36fb217 100644 --- a/arch/arm/mach-davinci/pdata-quirks.c +++ b/arch/arm/mach-davinci/pdata-quirks.c @@ -23,7 +23,6 @@ static void pdata_quirks_check(struct pdata_init *quirks) if (of_machine_is_compatible(quirks->compatible)) { if (quirks->fn) quirks->fn(); - break; } quirks++; }