mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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:
parent
ed2d24fc50
commit
e6feafc106
3 changed files with 8 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue