Merge tag 'rtc-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux
[sfrench/cifs-2.6.git] / drivers / rtc / rtc-m41t80.c
index 9fdc284c943bd83d268fc0030e3581115d452d42..5f46f85f814b12d94c9e1cafc8ae9bc0b79e79cf 100644 (file)
@@ -872,7 +872,7 @@ static struct notifier_block wdt_notifier = {
 static int m41t80_probe(struct i2c_client *client,
                        const struct i2c_device_id *id)
 {
-       struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
+       struct i2c_adapter *adapter = client->adapter;
        int rc = 0;
        struct rtc_time tm;
        struct m41t80_data *m41t80_data = NULL;