Skip to content

Commit 0e5e800

Browse files
committed
platform/x86: intel_punit_ipc: Revert "Fix resource ioremap warning"
Since we have a proper fix for intel_pmc_ipc driver for resource management, get rid of unneeded commit in the intel_punit_ipc driver. This reverts commit 6cc8cbb. Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]>
1 parent af6c7e1 commit 0e5e800

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/platform/x86/intel_punit_ipc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,28 +252,28 @@ static int intel_punit_get_bars(struct platform_device *pdev)
252252
* - GTDRIVER_IPC BASE_IFACE
253253
*/
254254
res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
255-
if (res && resource_size(res) > 1) {
255+
if (res) {
256256
addr = devm_ioremap_resource(&pdev->dev, res);
257257
if (!IS_ERR(addr))
258258
punit_ipcdev->base[ISPDRIVER_IPC][BASE_DATA] = addr;
259259
}
260260

261261
res = platform_get_resource(pdev, IORESOURCE_MEM, 3);
262-
if (res && resource_size(res) > 1) {
262+
if (res) {
263263
addr = devm_ioremap_resource(&pdev->dev, res);
264264
if (!IS_ERR(addr))
265265
punit_ipcdev->base[ISPDRIVER_IPC][BASE_IFACE] = addr;
266266
}
267267

268268
res = platform_get_resource(pdev, IORESOURCE_MEM, 4);
269-
if (res && resource_size(res) > 1) {
269+
if (res) {
270270
addr = devm_ioremap_resource(&pdev->dev, res);
271271
if (!IS_ERR(addr))
272272
punit_ipcdev->base[GTDRIVER_IPC][BASE_DATA] = addr;
273273
}
274274

275275
res = platform_get_resource(pdev, IORESOURCE_MEM, 5);
276-
if (res && resource_size(res) > 1) {
276+
if (res) {
277277
addr = devm_ioremap_resource(&pdev->dev, res);
278278
if (!IS_ERR(addr))
279279
punit_ipcdev->base[GTDRIVER_IPC][BASE_IFACE] = addr;

0 commit comments

Comments
 (0)