mei: push all standard settings into mei_device_init
Setting of hw_ops and device has should be in mei_device_init. We add reference to the parent device and remove pci dependent cfg Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
2190fe2a3f
commit
3a7e9b6c66
@@ -1123,14 +1123,13 @@ struct mei_device *mei_txe_dev_init(struct pci_dev *pdev,
|
||||
if (!dev)
|
||||
return NULL;
|
||||
|
||||
mei_device_init(dev, cfg);
|
||||
mei_device_init(dev, &pdev->dev, &mei_txe_hw_ops);
|
||||
|
||||
hw = to_txe_hw(dev);
|
||||
|
||||
init_waitqueue_head(&hw->wait_aliveness_resp);
|
||||
|
||||
dev->ops = &mei_txe_hw_ops;
|
||||
|
||||
dev->cfg = cfg;
|
||||
dev->pdev = pdev;
|
||||
return dev;
|
||||
}
|
||||
|
Reference in New Issue
Block a user