From patchwork Fri Mar 3 10:33:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9602523 X-Patchwork-Delegate: kvalo@adurom.com 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 7690660453 for ; Fri, 3 Mar 2017 10:43:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 693E0285DC for ; Fri, 3 Mar 2017 10:43:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E13428600; Fri, 3 Mar 2017 10:43:52 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5D6E285DC for ; Fri, 3 Mar 2017 10:43:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751723AbdCCKl5 (ORCPT ); Fri, 3 Mar 2017 05:41:57 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:33090 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751637AbdCCKlq (ORCPT ); Fri, 3 Mar 2017 05:41:46 -0500 Received: by mail-lf0-f67.google.com with SMTP id r36so7742404lfi.0 for ; Fri, 03 Mar 2017 02:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Vwgp3pqSYRv9swkVV6/WMiDd27qqY30VbN37S15WAhg=; b=K22HIy+L4j3WAAQ828B6jf1Sm3xbASoQY/bPCkLsuuP7mWd2z8Acqyg69M34naO8av iI4ET9SRsqcYqTUjOJ/14uf9ygLmLRKoGprmcqO8PKLoVruBYiqriU/loOJHX3Jq4d7G gx/GWkEyRrfqrecSvkoGRrn2k6JWj8oAvM4eA7/V/Dwnr9ddYH4w4aznLKeDL0UGhbW6 eOV/EiO6glgtBsyNoCRd27V/aUEQqO4jZh7tQYKr02wIsOiu2MswEjtm9sbQu7gJwi19 CiXiLC/YE33WTu+jv8A+KTIGkHfXo34RtDxGXYkEBJbXbzOLg02y4NlQ4wFEDnZGGGAt Ui8A== 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:mime-version :content-transfer-encoding; bh=Vwgp3pqSYRv9swkVV6/WMiDd27qqY30VbN37S15WAhg=; b=ayv+TmbiRRmha8jUyf+jbP2tVumTODuuRywiez/3xuT+2jRAIAYkT/HpAUOWzdzVmG VgpccN7YVzYcNoilV460DeZ3sI3B/dkUjkiNpma1uKVCNCDuPuGqx/2MShT/UlR5rJjl cWr5rwGt0IFavyn6fTJKQ56w1GXMPkTAa1dS3nZbso6U5z6Ci9gehSjzN9O8bj/IOLQU ZEoNwBEwrO6wq1v8TtSeQLf7vhMEWXnnMCeD/AaHasAnKHbDuUtGLfCFcTnMh2n6GQkB xNo2RuU27uZafvlQGVRKIul/6ZT0eH7lNAtFwqJKuDxZd+keg1l4wgCWN71joo3tzfIk UNkA== X-Gm-Message-State: AMke39k7bpLhTW11tn06aFZ7+c6lLwH26HnLRqCw2u4YGYNZaj82meFiNXkGAMwSl6Yp5Q== X-Received: by 10.25.19.194 with SMTP id 63mr695796lft.144.1488537215018; Fri, 03 Mar 2017 02:33:35 -0800 (PST) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id m16sm2262494lfj.3.2017.03.03.02.33.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2017 02:33:34 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo , linux-wireless@vger.kernel.org Cc: Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Arnd Bergmann Subject: [PATCH 4.12] bcma: drop unneeded check for CONFIG_OF_IRQ Date: Fri, 3 Mar 2017 11:33:30 +0100 Message-Id: <20170303103330.4914-1-zajec5@gmail.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rafał Miłecki We already have the same check in bcma_of_get_irq which really calls symbols available with CONFIG_OF_IRQ only. It appears this duplicated check was accidentally added in commit c58d900cc96a ("bcma: fix building without OF_IRQ"). The rest of code in bcma_of_fill_device should work fine without CONFIG_OF_IRQ. Signed-off-by: Rafał Miłecki Cc: Arnd Bergmann Acked-by: Arnd Bergmann --- drivers/bcma/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c index 2da7fe1d20a7..e6986c7608f1 100644 --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c @@ -201,9 +201,6 @@ static void bcma_of_fill_device(struct device *parent, { struct device_node *node; - if (!IS_ENABLED(CONFIG_OF_IRQ)) - return; - node = bcma_of_find_child_device(parent, core); if (node) core->dev.of_node = node;