Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1009163pxb; Tue, 17 Aug 2021 01:18:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPmgk81RHyLR/gSrPqZcgXeHJho7qFO7QAerOQ+ZFdWrmmcDA2hNDb66Cqrjd/HN47bnF5 X-Received: by 2002:a17:906:f1ca:: with SMTP id gx10mr2702222ejb.387.1629188339174; Tue, 17 Aug 2021 01:18:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629188339; cv=none; d=google.com; s=arc-20160816; b=x3Z1iJT0UhuIwd9MnmbzOR/GhetBSXz7gwzZsSPDm/ykdehJkjxL3vjUsqhWaY1ZpS cva6tbeBL/w2GGZ1YTCX0xSXU6JyhKT2isEw8bhTtf61zoy5HNQOPFGUMO+0owm420ba 2UER83CBu92Bm0TFhSCDvBK11H6HcMgNlFueaQeHlNwp0shaBMtO4j80KTQBX3y1wYsR dkwnmaxzHYaiZUeFUz2jfkQGSlVmgRA2MScvYXjq9XxKXsyXQM0RjVEXopWTlYrDcCmm thiUUsyknJYShLGLp37SIYZFV1+JzO/gsmGZVo+ChbdEImLF3hpXGA7KyDPWph6WeYtf bpaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=WCp8noSccte2B57AIkhkKtX0SS0VncdQyviMk909mfM=; b=IOj0jUw2on2xUL9YGNVuKL8FTyTAhoQ1gaRY3HLXvnBDaqvYR67YEcEFpsex1oVG8/ bzZ3NnlBAmdkDV35Bj8q6RboQLzdNGu4NY/j6LElbMG+tyUzDEvehfs2WlGEQfc46PBk zKQLvuvAuq6CIEe9lUdUKzDVWXvq8/OhKCApS6LzUhffVhl5rus/5LxS1uA8RYT/zj5y UxX3ONSt0uaHK6auzf/0PGcw+QeD4ooDsONXMxLTLU7AN/pixhYbxmhD/8JFABuTo45F zrKu57aLPl5DvkcYH1gST1Bd57YVcavNLRZCPl/NgYG4YJPQ+wKOTkHMWydeBhmRvckW FuAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VFHPjEaM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v12si1453388ejv.679.2021.08.17.01.18.34; Tue, 17 Aug 2021 01:18:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VFHPjEaM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238727AbhHQIPe (ORCPT + 99 others); Tue, 17 Aug 2021 04:15:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238401AbhHQIPb (ORCPT ); Tue, 17 Aug 2021 04:15:31 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80FDCC061764; Tue, 17 Aug 2021 01:14:58 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id w13-20020a17090aea0db029017897a5f7bcso5102564pjy.5; Tue, 17 Aug 2021 01:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=WCp8noSccte2B57AIkhkKtX0SS0VncdQyviMk909mfM=; b=VFHPjEaMVaSuu/WtG+/pu5/GTX7hnLMHr0QpzkV7whvPns3ADAaZBe8HDqpjOdFXQx qqdf7Ih1PpIgs9oO+1JVwH19Xt+YM6y4yXzI+VHtqX2vmQMyPdJ6OdQHnPJMzA2Pm7tx I2UYbySGeg+lWShsUE+O5vRrR9I4dYNohzxzlOasCUg2DdF7nscnz57oDJcAgebB7bLz ryZWCuMhixUDt17AZMiM/hUBdFRDZnPZP4IiWfIcsIpTH9K4FUeorNgmgVk6tGjsxySh Je7DTLP7zcAvlpqnJWskJ/2ROn73rEvaWXP0bwHemrCl0OllUi2PKUxpa0Hj4d7uU/g/ y6SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WCp8noSccte2B57AIkhkKtX0SS0VncdQyviMk909mfM=; b=ay21+ZDURs0MkFxXYPjFdWZPuxQE65TVshb/6tz0wljqUzRgvV5ZJLapuojivWWdXH cdgY4exAJthCayjaKQdlsQa9Qtx+JEJozig645gIq00HaS0mIgFHuhEQ6h0VdMNJx+Cl A7nBoFr3CkyUYzTRKXoS4NHMGMiJF4pORc0HXe635M7sY6N+af+0NKytRJGJ3FySZA1J M8V97U7cNL8p6kK4MRaTBOdJSn45C3H3gcNzoxQx1LJgfxmjIW9dwU4h1JCfGohORSQ0 /VtU67hY2+Hpvttf8SanLWMQj3PC3p5wbb3gN/n7Onb5gnQ2wsng8oZLtcG4qw5pnePU h6sA== X-Gm-Message-State: AOAM530tQPWmd1gPtyshLQ4M7yLjC6UXhkJ5gx3Y9KIympyuOO+wcFsO /MNs1pF4uo+f++bKW+QccYs= X-Received: by 2002:a17:90b:1c8e:: with SMTP id oo14mr2489762pjb.108.1629188097947; Tue, 17 Aug 2021 01:14:57 -0700 (PDT) Received: from localhost.localdomain ([49.36.209.103]) by smtp.googlemail.com with ESMTPSA id b190sm2079847pgc.91.2021.08.17.01.14.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 01:14:57 -0700 (PDT) From: Utkarsh Verma To: Greg Kroah-Hartman Cc: Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Utkarsh Verma Subject: [PATCH] serial: 8250_mid: Use pci_irq_vector() to get IRQ Date: Tue, 17 Aug 2021 13:44:01 +0530 Message-Id: <20210817081401.3440-1-utkarshverma294@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Instead of a direct assignment, use pci_irq_vector() to get the Linux IRQ number. Signed-off-by: Utkarsh Verma --- drivers/tty/serial/8250/8250_mid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_mid.c b/drivers/tty/serial/8250/8250_mid.c index efa0515139f8..3a279ce0e904 100644 --- a/drivers/tty/serial/8250/8250_mid.c +++ b/drivers/tty/serial/8250/8250_mid.c @@ -299,7 +299,7 @@ static int mid8250_probe(struct pci_dev *pdev, const struct pci_device_id *id) memset(&uart, 0, sizeof(struct uart_8250_port)); uart.port.dev = &pdev->dev; - uart.port.irq = pdev->irq; + uart.port.irq = pci_irq_vector(pdev, 0); uart.port.private_data = mid; uart.port.type = PORT_16750; uart.port.iotype = UPIO_MEM; -- 2.17.1