Skip to content

Commit 1cf47b0

Browse files
Uwe Kleine-Königtiwai
authored andcommitted
ALSA: ppc: keywest: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it can be trivially converted. Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 58b9d4c commit 1cf47b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sound/ppc/keywest.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
static struct pmac_keywest *keywest_ctx;
1717
static bool keywest_probed;
1818

19-
static int keywest_probe(struct i2c_client *client,
20-
const struct i2c_device_id *id)
19+
static int keywest_probe(struct i2c_client *client)
2120
{
2221
keywest_probed = true;
2322
/* If instantiated via i2c-powermac, we still need to set the client */
@@ -91,7 +90,7 @@ static struct i2c_driver keywest_driver = {
9190
.driver = {
9291
.name = "PMac Keywest Audio",
9392
},
94-
.probe = keywest_probe,
93+
.probe_new = keywest_probe,
9594
.remove = keywest_remove,
9695
.id_table = keywest_i2c_id,
9796
};

0 commit comments

Comments
 (0)