x86/kvm: Fix fastop function ELF metadata
[linux-2.6-microblaze.git] / drivers / rtc / rtc-m41t80.c
index 9fdc284..5f46f85 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;