Re: [patch][3/3] qlogic: set host name before using scsi_host_alloc()
From: Christoph Hellwig
Date: Fri Oct 17 2003 - 07:04:25 EST
> + sprintf(qinfo,
> + "Qlogicfas Driver version 0.46, chip %02X at %03X, IRQ %d, TPdma:%d",
> + qltyp, qbase, qlirq, QL_TURBO_PDMA);
> + host->name = qinfo;
> +
This should be
.name = "qlogicfas",
in the host template defintion instead, that makes the text const and
has no runtime overhead.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/