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-sha204a - 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
fa2ca3b2 b8ed0bff

+3 -3
+3 -3
drivers/crypto/atmel-sha204a.c
··· 91 91 return max; 92 92 } 93 93 94 - static int atmel_sha204a_probe(struct i2c_client *client, 95 - const struct i2c_device_id *id) 94 + static int atmel_sha204a_probe(struct i2c_client *client) 96 95 { 96 + const struct i2c_device_id *id = i2c_client_get_device_id(client); 97 97 struct atmel_i2c_client_priv *i2c_priv; 98 98 int ret; 99 99 ··· 142 142 MODULE_DEVICE_TABLE(i2c, atmel_sha204a_id); 143 143 144 144 static struct i2c_driver atmel_sha204a_driver = { 145 - .probe = atmel_sha204a_probe, 145 + .probe_new = atmel_sha204a_probe, 146 146 .remove = atmel_sha204a_remove, 147 147 .id_table = atmel_sha204a_id, 148 148