From patchwork Thu Feb 2 07:04:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 93091 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2773016qgi; Wed, 1 Feb 2017 23:04:52 -0800 (PST) X-Received: by 10.28.58.204 with SMTP id h195mr26081695wma.116.1486019092589; Wed, 01 Feb 2017 23:04:52 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id j59si27455155wrj.283.2017.02.01.23.04.51; Wed, 01 Feb 2017 23:04:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 460C4A7659; Thu, 2 Feb 2017 08:04:50 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eaOlh6Vm9H0i; Thu, 2 Feb 2017 08:04:49 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 602834ABD8; Thu, 2 Feb 2017 08:04:49 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3ECC24ABD8 for ; Thu, 2 Feb 2017 08:04:43 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JDp6-QyWbrbm for ; Thu, 2 Feb 2017 08:04:43 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-08.nifty.com (conuserg-08.nifty.com [210.131.2.75]) by theia.denx.de (Postfix) with ESMTPS id 8458B4AB34 for ; Thu, 2 Feb 2017 08:04:37 +0100 (CET) Received: from pug.jp.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id v1274EFH002844; Thu, 2 Feb 2017 16:04:14 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v1274EFH002844 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1486019055; bh=h7Aea+vtrpGvHQnTd91Xhb8s4f8hGw1NbFoLMRTQNdQ=; h=From:To:Cc:Subject:Date:From; b=eWiuqHDxXsujGzMKL6ME6tOCeFghItD+ycslI0oJsLaEw3qivxNw5p71d/G6ncrbu M/Ifr0VvUfjqoFtj5+Z8Sd+7ecxa62FDQcwIAHeOysm2oUMnfFL+MztslJkylO3mSj LNjwl46gwRlPcWkHNPyWAnzy9vj6wYfMvYGy/xofjSWV7Oviwe7Su62SCJEHjDKYZf dyNJqEm03QqeZ7bPcbmF9Q8VGYjzEwIk0wLZk394eIij0zFiVAHLba1/8DN6TgEhK8 JyDQAoT9tdPLg0i+IQx1bw+gH3Mw41SJSOpEoBro0R6PQPw39VNIf1boltfYzcl5us 9GhQ4wLIi6rSA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 2 Feb 2017 16:04:11 +0900 Message-Id: <1486019051-8879-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Tom Warren Subject: [U-Boot] [PATCH] pwm: remove unneeded ifdef CONFIG_DM_PWM ... endif X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Both CONFIG_PWM_TEGRA and CONFIG_PWM_EXYNOS depend on CONFIG_DM_PWM, i.e. they are already guarded by Kconfig correctly. Remove unneeded ifdef CONFIG_DM_PWM ... endif. While we are here, let's tidy up alignment and sort the lines alphabetically in Makefile. Signed-off-by: Masahiro Yamada --- drivers/pwm/Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) -- 2.7.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Reviewed-by: Simon Glass diff --git a/drivers/pwm/Makefile b/drivers/pwm/Makefile index af39347..b037130 100644 --- a/drivers/pwm/Makefile +++ b/drivers/pwm/Makefile @@ -10,10 +10,9 @@ #ccflags-y += -DDEBUG -obj-$(CONFIG_DM_PWM) += pwm-uclass.o -obj-$(CONFIG_PWM_ROCKCHIP) += rk_pwm.o -obj-$(CONFIG_PWM_IMX) += pwm-imx.o pwm-imx-util.o -ifdef CONFIG_DM_PWM -obj-$(CONFIG_PWM_TEGRA) += tegra_pwm.o -obj-$(CONFIG_PWM_EXYNOS) += exynos_pwm.o -endif +obj-$(CONFIG_DM_PWM) += pwm-uclass.o + +obj-$(CONFIG_PWM_EXYNOS) += exynos_pwm.o +obj-$(CONFIG_PWM_IMX) += pwm-imx.o pwm-imx-util.o +obj-$(CONFIG_PWM_ROCKCHIP) += rk_pwm.o +obj-$(CONFIG_PWM_TEGRA) += tegra_pwm.o