These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / gpu / drm / nouveau / nvkm / subdev / therm / fannil.c
index 534e597..8ae300f 100644 (file)
@@ -38,11 +38,10 @@ nvkm_fannil_set(struct nvkm_therm *therm, int percent)
 int
 nvkm_fannil_create(struct nvkm_therm *therm)
 {
-       struct nvkm_therm_priv *tpriv = (void *)therm;
        struct nvkm_fan *priv;
 
        priv = kzalloc(sizeof(*priv), GFP_KERNEL);
-       tpriv->fan = priv;
+       therm->fan = priv;
        if (!priv)
                return -ENOMEM;