diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2020-01-23 18:38:17 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-24 12:08:39 +0300 |
commit | 723de0f9171eeb49a3ae98cae82ebbbb992b3a7c (patch) | |
tree | 64b525c1eba167d7bbcb5a06c9d42651269424bd /drivers/staging/most/dim2 | |
parent | 2893c678321904722dd588d91efa074e24828c6f (diff) | |
download | linux-723de0f9171eeb49a3ae98cae82ebbbb992b3a7c.tar.xz |
staging: most: remove device from interface structure
This patch makes the adapter drivers use their own device structures
when registering a most interface with the core module.
With this the module that actually operates the physical device is the
owner of the device.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Link: https://lore.kernel.org/r/1579793906-5054-2-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/dim2')
-rw-r--r-- | drivers/staging/most/dim2/dim2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/most/dim2/dim2.c b/drivers/staging/most/dim2/dim2.c index 15c6aa8fa1ea..fb704be6f4f8 100644 --- a/drivers/staging/most/dim2/dim2.c +++ b/drivers/staging/most/dim2/dim2.c @@ -854,8 +854,8 @@ static int dim2_probe(struct platform_device *pdev) dev->most_iface.poison_channel = poison_channel; dev->most_iface.request_netinfo = request_netinfo; dev->most_iface.driver_dev = &pdev->dev; + dev->most_iface.dev = &dev->dev; dev->dev.init_name = "dim2_state"; - dev->dev.parent = &dev->most_iface.dev; ret = most_register_interface(&dev->most_iface); if (ret) { |