[PATCH 3.6.0- 0/6] SCSI: use module_platform_driver macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Srinivas Kandagatla <srinivas.kandagatla@xxxxxx>

Running below Coccinelle lookup pattern like below on the 
latest kernel showed about 52 hits. This patch series is a subset 
of those 52 patches, so that it will be easy for maintainers to review.
Hopefully these patches will get rid of some code duplication in kernel.


@  @
- initfunc(void)
- { return platform_driver_register(&dr); }

...

- module_init(initfunc);
...

- exitfunc(void)
- { platform_driver_unregister(&dr); }

...

- module_exit(exitfunc);
+ module_platform_driver(dr); 

Srinivas Kandagatla (6):
  scsi/jazz_esp: use module_platform_driver macro
  scsi/mac_esp: use module_platform_driver macro
  scsi/qlogicpti: use module_platform_driver macro
  scsi/sni_53c710: use module_platform_driver macro
  scsi/sun3x_esp: use module_platform_driver macro
  scsi/sun_esp: use module_platform_driver macro

 drivers/scsi/jazz_esp.c   |   14 +-------------
 drivers/scsi/mac_esp.c    |   14 +-------------
 drivers/scsi/qlogicpti.c  |   14 +-------------
 drivers/scsi/sni_53c710.c |   14 +-------------
 drivers/scsi/sun3x_esp.c  |   14 +-------------
 drivers/scsi/sun_esp.c    |   14 +-------------
 6 files changed, 6 insertions(+), 78 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux