Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1660909

[PATCH 2/7] scsi: ibmvscsi_tgt: remove use of class_attrs

From Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Newsgroups linux.kernel
Subject [PATCH 2/7] scsi: ibmvscsi_tgt: remove use of class_attrs
Date 2017-06-08 10:20 +0200
Message-ID <tQ0PD-1Le-7@gated-at.bofh.it> (permalink)
References <tQ0PD-1Le-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The class_attrs pointer is going away and it's not even being used in
this driver, so just remove it entirely.

Cc: "Bryant G. Ly" <bryantly@linux.vnet.ibm.com>
Cc: Michael Cyr <mikecyr@linux.vnet.ibm.com>
Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: <linux-scsi@vger.kernel.org>
Cc: <target-devel@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
index d390325c99ec..b480878e3258 100644
--- a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
+++ b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
@@ -3915,10 +3915,6 @@ static const struct target_core_fabric_ops ibmvscsis_ops = {
 
 static void ibmvscsis_dev_release(struct device *dev) {};
 
-static struct class_attribute ibmvscsis_class_attrs[] = {
-	__ATTR_NULL,
-};
-
 static struct device_attribute dev_attr_system_id =
 	__ATTR(system_id, S_IRUGO, system_id_show, NULL);
 
@@ -3938,7 +3934,6 @@ ATTRIBUTE_GROUPS(ibmvscsis_dev);
 static struct class ibmvscsis_class = {
 	.name		= "ibmvscsis",
 	.dev_release	= ibmvscsis_dev_release,
-	.class_attrs	= ibmvscsis_class_attrs,
 	.dev_groups	= ibmvscsis_dev_groups,
 };
 
-- 
2.13.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/7] Driver core: remove class_attrs from struct class Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-08 10:20 +0200
  [PATCH 2/7] scsi: ibmvscsi_tgt: remove use of class_attrs Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-08 10:20 +0200
    Re: [PATCH 2/7] scsi: ibmvscsi_tgt: remove use of class_attrs "Bryant G. Ly" <bryantly@linux.vnet.ibm.com> - 2017-06-08 14:40 +0200
  [PATCH 4/7] zram: use class_groups instead of class_attrs Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-08 10:20 +0200
    Re: [PATCH 4/7] zram: use class_groups instead of class_attrs Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-06-09 07:40 +0200
  [PATCH 3/7] mtd: use class_groups instead of class_attrs Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-08 10:20 +0200
    Re: [PATCH 3/7] mtd: use class_groups instead of class_attrs Richard Weinberger <richard@nod.at> - 2017-06-08 12:30 +0200
  [PATCH 7/7] driver core: remove class_attrs from struct class Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-08 10:20 +0200
  [PATCH 1/7] uwb: use class_groups instead of class_attrs Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-08 10:20 +0200
  [PATCH 6/7] pktcdvd: use class_groups instead of class_attrs Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-08 10:20 +0200
  [PATCH 5/7] gpio: use class_groups instead of class_attrs Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-08 10:20 +0200
    Re: [PATCH 5/7] gpio: use class_groups instead of class_attrs "Robert P. J. Day" <rpjday@crashcourse.ca> - 2017-06-08 11:40 +0200
    Re: [PATCH 5/7] gpio: use class_groups instead of class_attrs Linus Walleij <linus.walleij@linaro.org> - 2017-06-08 14:10 +0200

csiph-web