From: Akinobu Mita Date: Wed, 28 Jan 2015 23:30:29 +0000 (+0900) Subject: ata: ahci_platform: fix owner module reference mismatch for scsi host X-Git-Tag: fixes-v4.0-rc1~165^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=018d5ef2048fcab339467bcbebccf588c9bd2531;p=pandora-kernel.git ata: ahci_platform: fix owner module reference mismatch for scsi host The owner module reference of the ahci platform's scsi_host is initialized to libahci_platform's one, because these drivers use a scsi_host_template defined in libahci_platform. So these drivers can be unloaded even if the scsi device is being accessed. This fixes it by pushing the scsi_host_template from libahci_platform to all leaf drivers. The scsi_host_template is passed through a new argument of ahci_platform_init_host(). Signed-off-by: Akinobu Mita Signed-off-by: Tejun Heo Cc: Hans de Goede Cc: Christoph Hellwig Cc: "James E.J. Bottomley" Cc: linux-ide@vger.kernel.org Cc: linux-scsi@vger.kernel.org --- Reading git-diff-tree failed