Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: atmel-ecc - Convert to i2c's .probe_new()

.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Uwe Kleine-König and committed by
Herbert Xu
b8ed0bff c060e16d

+3 -3
+3 -3
drivers/crypto/atmel-ecc.c
··· 311 311 }, 312 312 }; 313 313 314 - static int atmel_ecc_probe(struct i2c_client *client, 315 - const struct i2c_device_id *id) 314 + static int atmel_ecc_probe(struct i2c_client *client) 316 315 { 316 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 317 317 struct atmel_i2c_client_priv *i2c_priv; 318 318 int ret; 319 319 ··· 390 390 .name = "atmel-ecc", 391 391 .of_match_table = of_match_ptr(atmel_ecc_dt_ids), 392 392 }, 393 - .probe = atmel_ecc_probe, 393 + .probe_new = atmel_ecc_probe, 394 394 .remove = atmel_ecc_remove, 395 395 .id_table = atmel_ecc_id, 396 396 };