On Thu, Jan 29, 2015 at 08:30:30AM +0900, Akinobu Mita wrote: > The owner module reference of the pata_of_platform's scsi_host is > initialized to pata_platform's one, because pata_of_platform driver > use a scsi_host_template defined in pata_platform. So this drivers > can be unloaded even if the scsi device is being accessed. > > This fixes it by propagating the scsi_host_template to pata_of_platform > driver. The scsi_host_template is passed through a new > argument of __pata_platform_probe(). > > Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx> > Cc: Hans de Goede <hdegoede@xxxxxxxxxx> > Cc: Tejun Heo <tj@xxxxxxxxxx> > Cc: Christoph Hellwig <hch@xxxxxx> > Cc: "James E.J. Bottomley" <JBottomley@xxxxxxxxxxxxx> > Cc: linux-ide@xxxxxxxxxxxxxxx > Cc: linux-scsi@xxxxxxxxxxxxxxx Applied 1-2 to libata/for-3.20. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html