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
This commit is contained in:
Debasis Das 2018-08-20 15:18:21 +05:30 • committed by nshrivas
commit e6feafc106
3 changed files with 8 additions and 9 deletions

View file

@ -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;