lkml.org 
[lkml]   [2012]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH] scsi/ufs: use module_pci_driver
    >  drivers/scsi/ufs/ufshcd.c |   19 +------------------
    >  1 file changed, 1 insertion(+), 18 deletions(-)
    >
    > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
    > index cd59f6f..5ab9b3f 100644
    > --- a/drivers/scsi/ufs/ufshcd.c
    > +++ b/drivers/scsi/ufs/ufshcd.c
    > @@ -1952,24 +1952,7 @@ static struct pci_driver ufshcd_pci_driver = {
    >  #endif
    >  };
    >
    > -/**
    > - * ufshcd_init - Driver registration routine
    > - */
    > -static int __init ufshcd_init(void)
    > -{
    > -       return pci_register_driver(&ufshcd_pci_driver);
    > -}
    > -module_init(ufshcd_init);
    > -
    > -/**
    > - * ufshcd_exit - Driver exit clean-up routine
    > - */
    > -static void __exit ufshcd_exit(void)
    > -{
    > -       pci_unregister_driver(&ufshcd_pci_driver);
    > -}
    > -module_exit(ufshcd_exit);
    > -
    > +module_pci_driver(ufshcd_pci_driver);


    Acked-by: Santosh Y <santoshsy@gmail.com>

    --
    ~Santosh
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2012-04-10 17:23    [W:0.024 / U:118.628 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site