Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acc84667 authored by Wei Yongjun's avatar Wei Yongjun Committed by Dmitry Torokhov
Browse files

Input: mma8450 - add missing i2c_set_clientdata() in mma8450_probe()



Add missing i2c_set_clientdata() in mma8450_probe(), otherwise
calling i2c_get_clientdata() in mma8450_remove() returns NULL.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 158baef3
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -204,6 +204,8 @@ static int mma8450_probe(struct i2c_client *c,
		goto err_free_mem;
		goto err_free_mem;
	}
	}


	i2c_set_clientdata(c, m);

	return 0;
	return 0;


err_free_mem:
err_free_mem: