From patchwork Fri Jul 25 14:23:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Moll X-Patchwork-Id: 34285 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 849A2235AB for ; Fri, 25 Jul 2014 14:24:51 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hq11sf12892079vcb.3 for ; Fri, 25 Jul 2014 07:24:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=neAHzBqybIFaQvhq79qJb/96aBYNVhO8ABFJwhQf5zI=; b=mmrDGYlICLUQizavBB7JOBw/cS3maKFRzzSBRwmcNkRyeDnDbIfZLNkci6JutDgT9s r+3ienzAfQkr3Ymk7tEkdJQLcdhbkZy4sa+me1yAnW7QD4fKKZUncB3TLvCja+AEoFjp cynUunaMnUlbq7fNl59l6j1Z8xYOXmRQaCmBFWK32JL9h0iSxSvZ1X0YAbHqbrR6hC9S eUlc5FAt8JYgyW6CmHS4dr/OHtlrEIN+VkaTMoggKSBotRcpAeNns/kUUnqsFpsqWghZ qiP9pzci8YkTeOttBxiLQkfUrDm792yurZcWlt9g205ZJuuDeq4JuZWCowYZIl6NQ4mM yOBw== X-Gm-Message-State: ALoCoQnqJpp740xwGD82B/VY/QOJjM/fklVoMGZYr8fXQxZGPeU4Ks09oNXHurmxZHn3Z46qpKpj X-Received: by 10.236.231.238 with SMTP id l104mr6320940yhq.51.1406298291308; Fri, 25 Jul 2014 07:24:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.35 with SMTP id g32ls1258367qgd.53.gmail; Fri, 25 Jul 2014 07:24:51 -0700 (PDT) X-Received: by 10.52.24.68 with SMTP id s4mr17553564vdf.37.1406298291129; Fri, 25 Jul 2014 07:24:51 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id dr2si7475894vdb.78.2014.07.25.07.24.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jul 2014 07:24:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id hu12so7459998vcb.34 for ; Fri, 25 Jul 2014 07:24:51 -0700 (PDT) X-Received: by 10.220.131.207 with SMTP id y15mr2007062vcs.71.1406298291014; Fri, 25 Jul 2014 07:24:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp42026vcb; Fri, 25 Jul 2014 07:24:50 -0700 (PDT) X-Received: by 10.70.35.169 with SMTP id i9mr15997967pdj.36.1406298290127; Fri, 25 Jul 2014 07:24:50 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rc17si9384966pab.87.2014.07.25.07.24.49 for ; Fri, 25 Jul 2014 07:24:50 -0700 (PDT) Received-SPF: none (google.com: linux-scsi-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760462AbaGYOYW (ORCPT ); Fri, 25 Jul 2014 10:24:22 -0400 Received: from fw-tnat.austin.arm.com ([217.140.110.23]:53974 "EHLO collaborate-mta1.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753196AbaGYOYU (ORCPT ); Fri, 25 Jul 2014 10:24:20 -0400 Received: from hornet.Cambridge.Arm.com (hornet.cambridge.arm.com [10.2.201.42]) by collaborate-mta1.arm.com (Postfix) with ESMTP id BC19613FAB0; Fri, 25 Jul 2014 09:24:17 -0500 (CDT) From: Pawel Moll To: Greg Kroah-Hartman Cc: Olof Johansson , Stephen Warren , Catalin Marinas , paul@pwsan.com, Arnd Bergmann , Peter De Schrijver , arm@kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Pawel Moll , "James E.J. Bottomley" , linux-scsi@vger.kernel.org Subject: [PATCH 4/5] [SCSI] Do not use platform_bus as a parent Date: Fri, 25 Jul 2014 15:23:52 +0100 Message-Id: <1406298233-27876-4-git-send-email-pawel.moll@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406298233-27876-1-git-send-email-pawel.moll@arm.com> References: <1406298233-27876-1-git-send-email-pawel.moll@arm.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: pawel.moll@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The host devices without a parent were "forcefully adopted" by platform bus. This patch removes this assignment. In effect the dev_dev may be NULL now, which means ISA. Cc: James E.J. Bottomley Cc: linux-scsi@vger.kernel.org Signed-off-by: Pawel Moll --- This patch is a part of effort to remove references to platform_bus and make it static. James, could you please have a look and advice if the change is correct? Would you happen to know the "real reasons" behind using the root platform_bus device a parent? drivers/scsi/hosts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index 3cbb57a..0c7389f 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c @@ -218,7 +218,7 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev, goto fail; if (!shost->shost_gendev.parent) - shost->shost_gendev.parent = dev ? dev : &platform_bus; + shost->shost_gendev.parent = dev; if (!dma_dev) dma_dev = shost->shost_gendev.parent;