1) Make sym2_template.module get setup properly. It was
the scsi_module.c code taking care of this for us previously.
2) Zero out on-stack structures, in particular sym_dev not being
zeroed out was causing sometimes-boots-sometimes-doesnt problems
for me on sparc64 with sym2 non-modular.
* Driver host template.
*/
static struct scsi_host_template sym2_template = {
+ .module = THIS_MODULE,
.name = "sym53c8xx",
#if 0
.detect = sym53c8xx_detect,
sym_device sym_dev;
sym_nvram nvram;
+ memset(&sym_dev, 0, sizeof(sym_dev));
+ memset(&nvram, 0, sizeof(nvram));
+
sym_dev.host_id = SYM_SETUP_HOST_ID;
if (sym53c8xx_pci_init(pdev, &sym_dev))
return -ENODEV;