diff options
author | Akinobu Mita <[email protected]> | 2015-01-29 08:30:30 +0900 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2015-01-28 18:45:23 -0500 |
commit | 17263905399471016cda6c1975044d14291c5ba5 (patch) | |
tree | 4ba57184e91e25a23d63519930fd0154e0c8dd2a /lib/memory-notifier-error-inject.c | |
parent | 018d5ef2048fcab339467bcbebccf588c9bd2531 (diff) |
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 <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Cc: Hans de Goede <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions