Commit e2ee19f1 authored by Andrew Morton's avatar Andrew Morton Committed by James Bottomley

[PATCH] aic7xxx remove warnings

From: Jan Dittmer <jdittmer@ppp0.net>

This patch converts the aic7xxx driver to use module_param instead of
MODULE_PARM and therefore gets rid of two warning in the non-modular build
case.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 4c31be3e
...@@ -438,7 +438,7 @@ MODULE_AUTHOR("Maintainer: Justin T. Gibbs <gibbs@scsiguy.com>"); ...@@ -438,7 +438,7 @@ MODULE_AUTHOR("Maintainer: Justin T. Gibbs <gibbs@scsiguy.com>");
MODULE_DESCRIPTION("Adaptec Aic77XX/78XX SCSI Host Bus Adapter driver"); MODULE_DESCRIPTION("Adaptec Aic77XX/78XX SCSI Host Bus Adapter driver");
MODULE_LICENSE("Dual BSD/GPL"); MODULE_LICENSE("Dual BSD/GPL");
MODULE_VERSION(AIC7XXX_DRIVER_VERSION); MODULE_VERSION(AIC7XXX_DRIVER_VERSION);
MODULE_PARM(aic7xxx, "s"); module_param(aic7xxx, charp, 0444);
MODULE_PARM_DESC(aic7xxx, MODULE_PARM_DESC(aic7xxx,
"period delimited, options string.\n" "period delimited, options string.\n"
" verbose Enable verbose/diagnostic logging\n" " verbose Enable verbose/diagnostic logging\n"
...@@ -845,7 +845,6 @@ ahc_linux_detect(Scsi_Host_Template *template) ...@@ -845,7 +845,6 @@ ahc_linux_detect(Scsi_Host_Template *template)
return (0); return (0);
} }
ahc_linux_size_nseg(); ahc_linux_size_nseg();
#ifdef MODULE
/* /*
* If we've been passed any parameters, process them now. * If we've been passed any parameters, process them now.
*/ */
...@@ -857,7 +856,6 @@ ahc_linux_detect(Scsi_Host_Template *template) ...@@ -857,7 +856,6 @@ ahc_linux_detect(Scsi_Host_Template *template)
"aic7xxx: to see the proper way to specify options to the aic7xxx module\n" "aic7xxx: to see the proper way to specify options to the aic7xxx module\n"
"aic7xxx: Specifically, don't use any commas when passing arguments to\n" "aic7xxx: Specifically, don't use any commas when passing arguments to\n"
"aic7xxx: insmod or else it might trash certain memory areas.\n"); "aic7xxx: insmod or else it might trash certain memory areas.\n");
#endif
template->proc_name = "aic7xxx"; template->proc_name = "aic7xxx";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment