Message ID | 4D0FAB7E.1080704@bspu.unibel.by (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
--- a/drivers/video/via/via_i2c.c 2010-12-18 06:42:37.000000000 +0200 +++ b/drivers/video/via/via_i2c.c 2010-12-20 19:55:17.000000000 +0200 @@ -188,7 +188,7 @@ struct i2c_adapter *viafb_find_i2c_adapt { struct via_i2c_stuff *stuff = &via_i2c_par[which]; - return &stuff->adapter; + return stuff->is_active ? &stuff->adapter : NULL; } EXPORT_SYMBOL_GPL(viafb_find_i2c_adapter);