···24322432{24332433 struct rt5640_priv *rt5640 = snd_soc_component_get_drvdata(component);2434243424352435+ /*24362436+ * soc_remove_component() force-disables jack and thus rt5640->jack24372437+ * could be NULL at the time of driver's module unloading.24382438+ */24392439+ if (!rt5640->jack)24402440+ return;24412441+24352442 disable_irq(rt5640->irq);24362443 rt5640_cancel_work(rt5640);24372444