mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
Drivers: block: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Mike Miller <mike.miller@hp.com> Cc: Chirag Kantharia <chirag.kantharia@hp.com> Cc: Geoff Levand <geoff@infradead.org> Cc: Jim Paris <jim@jtan.com> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: "Michael S. Tsirkin" <mst@redhat.com> Cc: Grant Likely <grant.likely@secretlab.ca> Cc: Matthew Wilcox <matthew.r.wilcox@intel.com> Cc: Keith Busch <keith.busch@intel.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: NeilBrown <neilb@suse.de> Cc: Jens Axboe <axboe@kernel.dk> Cc: Tao Guo <Tao.Guo@emc.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -320,7 +320,7 @@ static void release_io_mem(ctlr_info_t *c)
|
||||
c->io_mem_length = 0;
|
||||
}
|
||||
|
||||
static void __devexit cpqarray_remove_one(int i)
|
||||
static void cpqarray_remove_one(int i)
|
||||
{
|
||||
int j;
|
||||
char buff[4];
|
||||
@@ -352,7 +352,7 @@ static void __devexit cpqarray_remove_one(int i)
|
||||
free_hba(i);
|
||||
}
|
||||
|
||||
static void __devexit cpqarray_remove_one_pci (struct pci_dev *pdev)
|
||||
static void cpqarray_remove_one_pci(struct pci_dev *pdev)
|
||||
{
|
||||
int i;
|
||||
ctlr_info_t *tmp_ptr;
|
||||
@@ -377,7 +377,7 @@ static void __devexit cpqarray_remove_one_pci (struct pci_dev *pdev)
|
||||
/* removing an instance that was not removed automatically..
|
||||
* must be an eisa card.
|
||||
*/
|
||||
static void __devexit cpqarray_remove_one_eisa (int i)
|
||||
static void cpqarray_remove_one_eisa(int i)
|
||||
{
|
||||
if (hba[i] == NULL) {
|
||||
printk(KERN_ERR "cpqarray: controller %d appears to have"
|
||||
@@ -388,7 +388,7 @@ static void __devexit cpqarray_remove_one_eisa (int i)
|
||||
}
|
||||
|
||||
/* pdev is NULL for eisa */
|
||||
static int __devinit cpqarray_register_ctlr( int i, struct pci_dev *pdev)
|
||||
static int cpqarray_register_ctlr(int i, struct pci_dev *pdev)
|
||||
{
|
||||
struct request_queue *q;
|
||||
int j;
|
||||
@@ -505,8 +505,8 @@ Enomem4:
|
||||
return -1;
|
||||
}
|
||||
|
||||
static int __devinit cpqarray_init_one( struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent)
|
||||
static int cpqarray_init_one(struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -536,7 +536,7 @@ static int __devinit cpqarray_init_one( struct pci_dev *pdev,
|
||||
static struct pci_driver cpqarray_pci_driver = {
|
||||
.name = "cpqarray",
|
||||
.probe = cpqarray_init_one,
|
||||
.remove = __devexit_p(cpqarray_remove_one_pci),
|
||||
.remove = cpqarray_remove_one_pci,
|
||||
.id_table = cpqarray_pci_device_id,
|
||||
};
|
||||
|
||||
@@ -742,7 +742,7 @@ __setup("smart2=", cpqarray_setup);
|
||||
/*
|
||||
* Find an EISA controller's signature. Set up an hba if we find it.
|
||||
*/
|
||||
static int __devinit cpqarray_eisa_detect(void)
|
||||
static int cpqarray_eisa_detect(void)
|
||||
{
|
||||
int i=0, j;
|
||||
__u32 board_id;
|
||||
|
||||
Reference in New Issue
Block a user