From: Akinobu Mita Date: Wed, 28 Jan 2015 23:30:30 +0000 (+0900) Subject: ata: pata_platform: fix owner module reference mismatch for scsi host X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~149^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17263905399471016cda6c1975044d14291c5ba5;p=pandora-kernel.git ata: pata_platform: fix owner module reference mismatch for scsi host 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 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