gpio-exar.c (f5db340f19f14a8df9dfd22d71fba1513e9f1f7e) | gpio-exar.c (a589e211bd74715a63f507dade294ba618259ff7) |
---|---|
1/* 2 * GPIO driver for Exar XR17V35X chip 3 * 4 * Copyright (C) 2015 Sudip Mukherjee <sudip.mukherjee@codethink.co.uk> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 118 unchanged lines hidden (view full) --- 127 /* 128 * The UART driver must have mapped region 0 prior to registering this 129 * device - use it. 130 */ 131 p = pcim_iomap_table(pcidev)[0]; 132 if (!p) 133 return -ENOMEM; 134 | 1/* 2 * GPIO driver for Exar XR17V35X chip 3 * 4 * Copyright (C) 2015 Sudip Mukherjee <sudip.mukherjee@codethink.co.uk> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. --- 118 unchanged lines hidden (view full) --- 127 /* 128 * The UART driver must have mapped region 0 prior to registering this 129 * device - use it. 130 */ 131 p = pcim_iomap_table(pcidev)[0]; 132 if (!p) 133 return -ENOMEM; 134 |
135 ret = device_property_read_u32(&pdev->dev, "linux,first-pin", | 135 ret = device_property_read_u32(&pdev->dev, "exar,first-pin", |
136 &first_pin); 137 if (ret) 138 return ret; 139 140 ret = device_property_read_u32(&pdev->dev, "ngpios", &ngpios); 141 if (ret) 142 return ret; 143 --- 61 unchanged lines hidden --- | 136 &first_pin); 137 if (ret) 138 return ret; 139 140 ret = device_property_read_u32(&pdev->dev, "ngpios", &ngpios); 141 if (ret) 142 return ret; 143 --- 61 unchanged lines hidden --- |