| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * An i2c driver for the Xicor/Intersil X1205 RTC |
|---|
| 3 | 4 | * Copyright 2004 Karen Spearel |
|---|
| .. | .. |
|---|
| 11 | 12 | * |
|---|
| 12 | 13 | * Information and datasheet: |
|---|
| 13 | 14 | * http://www.intersil.com/cda/deviceinfo/0,1477,X1205,00.html |
|---|
| 14 | | - * |
|---|
| 15 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 16 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 17 | | - * published by the Free Software Foundation. |
|---|
| 18 | 15 | */ |
|---|
| 19 | 16 | |
|---|
| 20 | 17 | #include <linux/i2c.h> |
|---|
| .. | .. |
|---|
| 673 | 670 | }; |
|---|
| 674 | 671 | MODULE_DEVICE_TABLE(i2c, x1205_id); |
|---|
| 675 | 672 | |
|---|
| 673 | +static const struct of_device_id x1205_dt_ids[] = { |
|---|
| 674 | + { .compatible = "xircom,x1205", }, |
|---|
| 675 | + {}, |
|---|
| 676 | +}; |
|---|
| 677 | +MODULE_DEVICE_TABLE(of, x1205_dt_ids); |
|---|
| 678 | + |
|---|
| 676 | 679 | static struct i2c_driver x1205_driver = { |
|---|
| 677 | 680 | .driver = { |
|---|
| 678 | 681 | .name = "rtc-x1205", |
|---|
| 682 | + .of_match_table = x1205_dt_ids, |
|---|
| 679 | 683 | }, |
|---|
| 680 | 684 | .probe = x1205_probe, |
|---|
| 681 | 685 | .remove = x1205_remove, |
|---|