On Wed, Jul 26, 2023 at 11:59:56AM +0800, Yangtao Li wrote: > rtsx_pci_sdmmc_drv_remove() is only called for a device after > rtsx_pci_sdmmc_drv_probe() returned 0. In that case platform_set_drvdata() > was called with a non-NULL value and so platform_get_drvdata() > won't return NULL. > > Cc: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> > Signed-off-by: Yangtao Li <frank.li@xxxxxxxx> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx> Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
Attachment:
signature.asc
Description: PGP signature