Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp906653imu; Fri, 21 Dec 2018 09:14:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN4HJdN7QUTZhh7yD+JRcY2GN9Ku15Mf7MPHzfv7QY91ACB5vJa+9jowXocGqtgj+rN9yv8f X-Received: by 2002:a63:3602:: with SMTP id d2mr3129966pga.404.1545412447958; Fri, 21 Dec 2018 09:14:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545412447; cv=none; d=google.com; s=arc-20160816; b=orrs3V+FGp0sdHMZ2c8vLxzBb+nL86IGDfxdUmKTFzKaAPLzdDPMi/NOBgW/BlVWvT Vi7vlA2YyuKCT6etrQ5g/Hv7Srqvm+BCMR3FRiRCwvVbSsDBagMT4nzhZBm5ECkGPYzO OZ0v7lnJERsLr5vHVMEtW1/+Rr/busDFVYv8Mik46XyVHHKF1aHZZO27JGzQawXsuBWY 5Kv6EZ3bRa2DnqPquke/h4/Q5sRQ24IWR44/30N2ufLydrf5CLKDSi/vW9ZpUadPp1c/ wsAr97B1TGJaC63bT1nwwt6bHX7mJVzjaKtCrM6W8hMDY42fsxZyz8/uRyBvTA1lhnAq 9VNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VAFU/FJousXQjsPt6NjqWIN7MI7B9lQHWWeoeYuOwls=; b=Qkx5/qQo+ux60Q40AdqCfiA+4mTUlGNgAwtVL3SHiaFtuEUTd3RXDAIn4fbQzyOaWc Rndvr/AUDL9hvbeVewDbkSbqLd6t/bEjra+CWVgHCezdBP5wZPe1hFTjoUJgeYBvL+eM BURGhNoxLZc0QjZwczGwBcLEpcApDvgbvKoDZgbukmlJagIFqQDPEFpiE+ObL5LA0LBP FlhJy7w6PODf7BF0STPJzRWz4SOtbgHshu5SbFsuMfd8GF1Q/LcG54O/QefPkKkB+dTG uYOqY5CW7pbdCiv3N0VQ/Jt4Td16lSJE5/cXXdG82HP3Xoig3OGPJEQd3AKdqYQ14lb8 LgXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OD47cnoJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18si20558107plo.89.2018.12.21.09.13.52; Fri, 21 Dec 2018 09:14:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OD47cnoJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732865AbeLUHzF (ORCPT + 99 others); Fri, 21 Dec 2018 02:55:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:59320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732764AbeLUHzC (ORCPT ); Fri, 21 Dec 2018 02:55:02 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F02D7218F0; Fri, 21 Dec 2018 07:55:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545378901; bh=J0psXfa86rOzlA166rW8pNvz6ajlRowQgAtfKrUOEp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OD47cnoJPRR+BngQBdx2Lj6oAE825tnGWUXPQWc4/WJ2+2OE+gSI0/8CFLw9rv/tg fb8Wuu7PJBqIW0Z/bkMyN/y86shkjSawyB7EmkM0G+QJf9LL+gat951dPLLKiz9vSe kFR+jISM7ECYJhwTlEGyLZ1TFguBhK8ZzLCRADGA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Tyrel Datwyler Subject: [PATCH 04/10] pseries: ibmebus.c: convert to use BUS_ATTR_WO Date: Fri, 21 Dec 2018 08:54:36 +0100 Message-Id: <20181221075442.17109-5-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181221075442.17109-1-gregkh@linuxfoundation.org> References: <20181221075442.17109-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We are trying to get rid of BUS_ATTR() and the usage of that in ibmebus.c can be trivially converted to use BUS_ATTR_WO(), so use that instead. Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Tyrel Datwyler Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/platforms/pseries/ibmebus.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/platforms/pseries/ibmebus.c b/arch/powerpc/platforms/pseries/ibmebus.c index 5b4a56131904..84e8ec4011ba 100644 --- a/arch/powerpc/platforms/pseries/ibmebus.c +++ b/arch/powerpc/platforms/pseries/ibmebus.c @@ -261,8 +261,7 @@ static char *ibmebus_chomp(const char *in, size_t count) return out; } -static ssize_t ibmebus_store_probe(struct bus_type *bus, - const char *buf, size_t count) +static ssize_t probe_store(struct bus_type *bus, const char *buf, size_t count) { struct device_node *dn = NULL; struct device *dev; @@ -298,10 +297,9 @@ static ssize_t ibmebus_store_probe(struct bus_type *bus, return rc; return count; } -static BUS_ATTR(probe, 0200, NULL, ibmebus_store_probe); +static BUS_ATTR_WO(probe); -static ssize_t ibmebus_store_remove(struct bus_type *bus, - const char *buf, size_t count) +static ssize_t remove_store(struct bus_type *bus, const char *buf, size_t count) { struct device *dev; char *path; @@ -325,7 +323,7 @@ static ssize_t ibmebus_store_remove(struct bus_type *bus, return -ENODEV; } } -static BUS_ATTR(remove, 0200, NULL, ibmebus_store_remove); +static BUS_ATTR_WO(remove); static struct attribute *ibmbus_bus_attrs[] = { &bus_attr_probe.attr, -- 2.20.1