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: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
Wolfram Sang 2019-11-06 10:50:23 +01:00 committed by Wolfram Sang
parent ce668524bf
commit a72e27f7a4
1 changed files with 2 additions and 2 deletions

View File

@ -191,8 +191,8 @@ static void* i2c_matroxfb_probe(struct matrox_fb_info* minfo) {
0x1b, I2C_CLIENT_END 0x1b, I2C_CLIENT_END
}; };
i2c_new_probed_device(&m2info->maven.adapter, i2c_new_scanned_device(&m2info->maven.adapter,
&maven_info, addr_list, NULL); &maven_info, addr_list, NULL);
} }
} }
return m2info; return m2info;