From: Akinobu Mita Date: Mon, 14 Oct 2013 13:48:04 +0000 (+0900) Subject: [SCSI] scsi_debug: simplify creation and destruction of driver attribute files X-Git-Tag: v3.14-rc1~131^2^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8206937916bce22e79531f1eb2c54947ea3276a1;p=pandora-kernel.git [SCSI] scsi_debug: simplify creation and destruction of driver attribute files Instead of repeatedly calling driver_create_file() to create driver attribute files, This achieves the same thing by constructing an array of driver_attribute and setting it to bus_type->drv_groups. This change simplifies both creation and destruction of the attribute files, and also removes sparse warning caused by driver_attributes which are unnecessarily declared as global. Signed-off-by: Akinobu Mita Acked-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed