Commit a72e27f7 authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang

video: fbdev: matrox: convert to i2c_new_scanned_device

Move from the deprecated i2c_new_probed_device() to the new
i2c_new_scanned_device(). Make use of the new ERRPTR if suitable.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: default avatarDaniel Vetter <daniel@ffwll.ch>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent ce668524
......@@ -191,8 +191,8 @@ static void* i2c_matroxfb_probe(struct matrox_fb_info* minfo) {
0x1b, I2C_CLIENT_END
};
i2c_new_probed_device(&m2info->maven.adapter,
&maven_info, addr_list, NULL);
i2c_new_scanned_device(&m2info->maven.adapter,
&maven_info, addr_list, NULL);
}
}
return m2info;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment