From patchwork Tue Feb 14 22:03:46 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: 9572997 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 584BC60573 for ; Tue, 14 Feb 2017 22:04:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 452D12840B for ; Tue, 14 Feb 2017 22:04:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37D1728417; Tue, 14 Feb 2017 22:04:02 +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 AF8002840B for ; Tue, 14 Feb 2017 22:04:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751638AbdBNWD7 (ORCPT ); Tue, 14 Feb 2017 17:03:59 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:35996 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751604AbdBNWD7 (ORCPT ); Tue, 14 Feb 2017 17:03:59 -0500 Received: by mail-lf0-f66.google.com with SMTP id h65so12009865lfi.3 for ; Tue, 14 Feb 2017 14:03:58 -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=0Zih7f1f1qZzstrveqNxpHglmxi3eCTmG52tvms6MBc=; b=pKRQJ5K7GtLSEwjrA7QphLZ+T47IUKZdjtYSMR0950MVR0EskiY01szadt1Dn0T6NX WMC8x3dqKKfU0i8HEX3+qfzRTakYrVriHZHfgf+dnMDLClj5bj9u+EZAlpPOUkB0+nxL fQbgfWV/KdJpx3ktrUKC+/Jn2NmeNhWU7VYb8oUq8Z9Uhw2O2lHLkwz3Rwx3JmuFfeeF 0+7HHJZ15W+f3jIn1Mm5IkY9cXn1UfM7ZUEqkFnDAiQSNBHOahs+5KAu32HrRO/L/NSn Gztk6ct5+tQAndqgd5jQiD1anwL3wgByG7fVyoMPsDaNOIYzJdkF6faWDM/0lYQWrMBZ 1Y+A== 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=0Zih7f1f1qZzstrveqNxpHglmxi3eCTmG52tvms6MBc=; b=K6AO+IlSuizCAGpaq3ZD6KdtpT0a6u3Ee5VZa7VicmusuM3DfntTHDPGY1ero4W16w xqvBL9J0H9htgvkiTr7qelwBZIZFNRrtGBmZC8S2W7GZOs0cd0xsdhaz6HF9rxIV8Pnm LorcE6pC20rgi6I9cws1XmRDmYzvTIzDIbZgOg+MoPQJtQpmf5zx10twRxSPHB8P8mYE rxMsPzUCH+bMUnlyruqgRPxb5J3dnukwC3Smzk9RMwimcDkTtfN4u2HuYw/ToWvorMVA R8wRElltf/m0auzthTSwdxEd87cjgu+TOKaGyGn3NvGe7gXly84u0ilsk5KCIaQcIj+v 2bcQ== X-Gm-Message-State: AMke39kJPPZnx1z6SfP/vLj4NfyrGNB1YtD+GyiV8xb0c9NonU5CdsHnA6kLyb4kDzzzkw== X-Received: by 10.25.200.14 with SMTP id y14mr9679235lff.98.1487109837126; Tue, 14 Feb 2017 14:03:57 -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 x21sm448901ljd.15.2017.02.14.14.03.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 14:03:56 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo Cc: linux-wireless@vger.kernel.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH] bcma: gpio: set of_node regardless of the host type Date: Tue, 14 Feb 2017 23:03:46 +0100 Message-Id: <20170214220346.10479-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 DT allows describing many device types, not only platform ones. If e.g. bcma is hosted on PCI(e) and it has its of_node, let's pass it to the GPIO subsystem. This allows GPIO code to handle more hardware details not only for bcma on a SoC. Signed-off-by: Rafał Miłecki --- drivers/bcma/driver_gpio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/bcma/driver_gpio.c b/drivers/bcma/driver_gpio.c index 771a2a253440..7bde8d7a2816 100644 --- a/drivers/bcma/driver_gpio.c +++ b/drivers/bcma/driver_gpio.c @@ -185,8 +185,7 @@ int bcma_gpio_init(struct bcma_drv_cc *cc) chip->owner = THIS_MODULE; chip->parent = bcma_bus_get_host_dev(bus); #if IS_BUILTIN(CONFIG_OF) - if (cc->core->bus->hosttype == BCMA_HOSTTYPE_SOC) - chip->of_node = cc->core->dev.of_node; + chip->of_node = cc->core->dev.of_node; #endif switch (bus->chipinfo.id) { case BCMA_CHIP_ID_BCM4707: