qcacmn: Use appropriate dev handle in OS wrappers

The device handles used in OS wrappers should be of
the desired type.

Change-Id: I6a72c578492662e7c3907c844d9307fc0dc98e53
CRs-Fixed: 2299595
这个提交包含在:
Debasis Das
2018-08-20 15:18:21 +05:30
提交者 nshrivas
父节点 ed2d24fc50
当前提交 e6feafc106
修改 3 个文件,包含 8 行新增9 行删除

查看文件

@@ -92,14 +92,12 @@ QDF_STATUS
qal_vbus_get_dev_rstctl(struct qdf_pfm_hndl *pfhndl, const char *state,
struct qdf_vbus_rstctl **rstctl)
{
struct platform_device *pfdev;
struct reset_control *rsctl;
if (!pfhndl || !state)
return QDF_STATUS_E_INVAL;
pfdev = (struct platform_device *)pfhndl;
rsctl = reset_control_get(&pfdev->dev, state);
rsctl = reset_control_get((struct device *)pfhndl, state);
if (!rsctl)
return QDF_STATUS_E_FAILURE;