aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorPeter Griffin <[email protected]>2015-04-20 14:41:05 +0100
committerTejun Heo <[email protected]>2015-04-20 13:36:38 -0400
commite0e2674b92056c24c69940d5f405ea4aef5e4010 (patch)
treeab0213bd4d1259819f640373d15ea430f11b5e31 /net/switchdev/switchdev.c
parent5df07b74f671d1dfc1d81c3e791c335183cfc515 (diff)
ata: ahci_st: fixup layering violations / drvdata errors
Brian noticed while working on another SATA driver that uses libahci_platform, an error in this driver; it tries to the the driver data for its device, while libata also thinks it can set the driver data. See: ahci_platform_init_host() -> ata_host_alloc_pinfo() -> ata_host_alloc() -> dev_set_drvdata() So instead of sticking the IP-specific platform data into drvdata, let's use the plat_data variable that is reserved for this use. Addtionally plat_data isn't set until ahci_platform_init_host() has been called further down in probe(). So re-work the st_ahci_probe_resets and st_ahci_deassert_resets functions to take ahci_host_priv *hpriv as a parameter. Signed-off-by: Peter Griffin <[email protected]> Suggested-by: Brian Norris <[email protected]> Cc: Srinivas Kandagatla <[email protected]> Cc: Maxime Coquelin <[email protected]> Cc: Patrice Chotard <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions