em_sti.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | em_sti.c (9f475d084c032116cbecd4dc840003dc36465db5) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Emma Mobile Timer Support - STI 4 * 5 * Copyright (C) 2012 Magnus Damm 6 */ 7 8#include <linux/init.h> --- 277 unchanged lines hidden (view full) --- 286 p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL); 287 if (p == NULL) 288 return -ENOMEM; 289 290 p->pdev = pdev; 291 platform_set_drvdata(pdev, p); 292 293 irq = platform_get_irq(pdev, 0); | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Emma Mobile Timer Support - STI 4 * 5 * Copyright (C) 2012 Magnus Damm 6 */ 7 8#include <linux/init.h> --- 277 unchanged lines hidden (view full) --- 286 p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL); 287 if (p == NULL) 288 return -ENOMEM; 289 290 p->pdev = pdev; 291 platform_set_drvdata(pdev, p); 292 293 irq = platform_get_irq(pdev, 0); |
294 if (irq < 0) { 295 dev_err(&pdev->dev, "failed to get irq\n"); | 294 if (irq < 0) |
296 return irq; | 295 return irq; |
297 } | |
298 299 /* map memory, let base point to the STI instance */ 300 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 301 p->base = devm_ioremap_resource(&pdev->dev, res); 302 if (IS_ERR(p->base)) 303 return PTR_ERR(p->base); 304 305 ret = devm_request_irq(&pdev->dev, irq, em_sti_interrupt, --- 71 unchanged lines hidden --- | 296 297 /* map memory, let base point to the STI instance */ 298 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 299 p->base = devm_ioremap_resource(&pdev->dev, res); 300 if (IS_ERR(p->base)) 301 return PTR_ERR(p->base); 302 303 ret = devm_request_irq(&pdev->dev, irq, em_sti_interrupt, --- 71 unchanged lines hidden --- |