| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * TI DAVINCI I2C adapter driver. |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 8 | 9 | * |
|---|
| 9 | 10 | * ---------------------------------------------------------------------------- |
|---|
| 10 | 11 | * |
|---|
| 11 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 12 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 13 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 14 | | - * (at your option) any later version. |
|---|
| 15 | | - * |
|---|
| 16 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 17 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 18 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 19 | | - * GNU General Public License for more details. |
|---|
| 20 | 12 | * ---------------------------------------------------------------------------- |
|---|
| 21 | | - * |
|---|
| 22 | 13 | */ |
|---|
| 23 | 14 | #include <linux/kernel.h> |
|---|
| 24 | 15 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 770 | 761 | { |
|---|
| 771 | 762 | struct davinci_i2c_dev *dev; |
|---|
| 772 | 763 | struct i2c_adapter *adap; |
|---|
| 773 | | - struct resource *mem; |
|---|
| 774 | 764 | struct i2c_bus_recovery_info *rinfo; |
|---|
| 775 | 765 | int r, irq; |
|---|
| 776 | 766 | |
|---|
| .. | .. |
|---|
| 823 | 813 | if (IS_ERR(dev->clk)) |
|---|
| 824 | 814 | return PTR_ERR(dev->clk); |
|---|
| 825 | 815 | |
|---|
| 826 | | - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
|---|
| 827 | | - dev->base = devm_ioremap_resource(&pdev->dev, mem); |
|---|
| 816 | + dev->base = devm_platform_ioremap_resource(pdev, 0); |
|---|
| 828 | 817 | if (IS_ERR(dev->base)) { |
|---|
| 829 | 818 | return PTR_ERR(dev->base); |
|---|
| 830 | 819 | } |
|---|