arm-ccn.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | arm-ccn.c (1c8d96b41d8b05ed9dbc2bea03edf878f544f93e) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * 4 * Copyright (C) 2014 ARM Limited 5 */ 6 7#include <linux/ctype.h> 8#include <linux/hrtimer.h> --- 1463 unchanged lines hidden (view full) --- 1472 int err; 1473 1474 ccn = devm_kzalloc(&pdev->dev, sizeof(*ccn), GFP_KERNEL); 1475 if (!ccn) 1476 return -ENOMEM; 1477 ccn->dev = &pdev->dev; 1478 platform_set_drvdata(pdev, ccn); 1479 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * 4 * Copyright (C) 2014 ARM Limited 5 */ 6 7#include <linux/ctype.h> 8#include <linux/hrtimer.h> --- 1463 unchanged lines hidden (view full) --- 1472 int err; 1473 1474 ccn = devm_kzalloc(&pdev->dev, sizeof(*ccn), GFP_KERNEL); 1475 if (!ccn) 1476 return -ENOMEM; 1477 ccn->dev = &pdev->dev; 1478 platform_set_drvdata(pdev, ccn); 1479 |
1480 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1481 ccn->base = devm_ioremap_resource(ccn->dev, res); | 1480 ccn->base = devm_platform_ioremap_resource(pdev, 0); |
1482 if (IS_ERR(ccn->base)) 1483 return PTR_ERR(ccn->base); 1484 1485 res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); 1486 if (!res) 1487 return -EINVAL; 1488 irq = res->start; 1489 --- 93 unchanged lines hidden --- | 1481 if (IS_ERR(ccn->base)) 1482 return PTR_ERR(ccn->base); 1483 1484 res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); 1485 if (!res) 1486 return -EINVAL; 1487 irq = res->start; 1488 --- 93 unchanged lines hidden --- |