staging: rtl8188eu: convert pr_info call to dev_err call ODM_RAStateCheck
authorPhillip Potter <phil@philpotter.co.uk>
Tue, 25 May 2021 21:48:13 +0000 (22:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 May 2021 10:31:07 +0000 (12:31 +0200)
commit7f8d698ffb17d7880af6316361f267a6921d218b
treebe19e25b4ccfbb515905be29a0a0c237e0435cf9
parent993b21a0461467b7319c1c25df14cd9beecbed7d
staging: rtl8188eu: convert pr_info call to dev_err call ODM_RAStateCheck

Introduce logic to extract struct device pointer from passed in struct
odm_dm_struct pointer argument, and use this to call dev_err instead of
pr_info. As this is an error state if this line is reached, this is not
just information. Also, this is a driver, so dev_err is more
appropriate.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210525214813.6362-1-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/odm.c