From patchwork Tue Jul 24 08:53:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 1230661 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id DBE5D3FD4F for ; Tue, 24 Jul 2012 09:07:49 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1StazC-0001GD-BT; Tue, 24 Jul 2012 09:00:58 +0000 Received: from na3sys009aog119.obsmtp.com ([74.125.149.246]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1Stavi-00018j-VY for linux-arm-kernel@lists.infradead.org; Tue, 24 Jul 2012 08:57:24 +0000 Received: from mail-lb0-f178.google.com ([209.85.217.178]) (using TLSv1) by na3sys009aob119.postini.com ([74.125.148.12]) with SMTP ID DSNKUA5ja6LZYD9LMa8Jt75H03P2T7CIiTHC@postini.com; Tue, 24 Jul 2012 01:57:22 PDT Received: by lbbgj10 with SMTP id gj10so11611383lbb.37 for ; Tue, 24 Jul 2012 01:57:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=OeJzADxCF4/0v8Athjq9jnqafKXlBX0mTSWUph1Z0GU=; b=nUB4DEWyknS0eU5Zq7XbnwPLZ7+yhpzeh1Col5dIpfaDHky5/4JO7Ls42OA+WwOiGU bO+bFyVN6jMVz3F37Zi7xux0A4V9pKyHjvi8kWL8WvAmnnfPelSQF3XI7VD6IuHtHpam WMPRabe1S8SM7xbnUws/xQGI9CjXPvr6yZ8k7uArvlujFfI1oQWhWxW7rgOsP/SnpgxX SvLytDtiXLYNSNovFaj3sykPZ/vvboC6T26jTdcV7qjWP89rthXFJuc/mss53W4lGglN C65pM6eoxbeuf2wMiNQrd7YQDFdbwIpmNC/6oBv1RJ/HPD1ZNHb9EcOxbWw3UjDxn23O JxBw== Received: by 10.152.144.138 with SMTP id sm10mr20652220lab.22.1343120234317; Tue, 24 Jul 2012 01:57:14 -0700 (PDT) Received: from localhost (cs78217178.pp.htv.fi. [62.78.217.178]) by mx.google.com with ESMTPS id sm7sm15936079lab.5.2012.07.24.01.57.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jul 2012 01:57:13 -0700 (PDT) From: Felipe Balbi To: Tony Lindgren Subject: [PATCH 1/5] arm: omap: debug-leds: drop machine_is_* checks Date: Tue, 24 Jul 2012 11:53:58 +0300 Message-Id: <1343120042-16695-2-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.11 In-Reply-To: <1343120042-16695-1-git-send-email-balbi@ti.com> References: <1343120042-16695-1-git-send-email-balbi@ti.com> X-Gm-Message-State: ALoCoQlhSIz4ToivJU6aOjsKeuOCkpYVyNTIogNLrLGu0IUX9+IEPfsEHBe79aCOwkYGm66beawX X-Spam-Note: CRM114 invocation failed X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [74.125.149.246 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Linux OMAP Mailing List , Felipe Balbi , Linux ARM Kernel Mailing List X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org that platform_device is only registered by board-h4.c, so there's no need to check which machine is running as the driver won't bind to anything. Signed-off-by: Felipe Balbi --- arch/arm/plat-omap/debug-leds.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/plat-omap/debug-leds.c b/arch/arm/plat-omap/debug-leds.c index 39407cb..17cbef6 100644 --- a/arch/arm/plat-omap/debug-leds.c +++ b/arch/arm/plat-omap/debug-leds.c @@ -304,12 +304,6 @@ static struct platform_driver led_driver = { static int __init fpga_init(void) { - if (machine_is_omap_h4() - || machine_is_omap_h3() - || machine_is_omap_h2() - || machine_is_omap_perseus2() - ) - return platform_driver_register(&led_driver); - return 0; + return platform_driver_register(&led_driver); } fs_initcall(fpga_init);