lkml.org 
[lkml]   [2020]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 09/15] media: ddbridge: Use PCI_IRQ_MSI_TYPES where appropriate
    Date
    Seeing as there is shorthand available to use when asking for any type
    of interrupt, or any type of message signalled interrupt, leverage it.

    Signed-off-by: Piotr Stankiewicz <piotr.stankiewicz@intel.com>
    Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
    ---
    drivers/media/pci/ddbridge/ddbridge-main.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/media/pci/ddbridge/ddbridge-main.c b/drivers/media/pci/ddbridge/ddbridge-main.c
    index 03dc9924fa2c..ff5c33d7a736 100644
    --- a/drivers/media/pci/ddbridge/ddbridge-main.c
    +++ b/drivers/media/pci/ddbridge/ddbridge-main.c
    @@ -106,7 +106,7 @@ static void ddb_irq_msi(struct ddb *dev, int nr)

    if (msi && pci_msi_enabled()) {
    stat = pci_alloc_irq_vectors(dev->pdev, 1, nr,
    - PCI_IRQ_MSI | PCI_IRQ_MSIX);
    + PCI_IRQ_MSI_TYPES);
    if (stat >= 1) {
    dev->msi = stat;
    dev_info(dev->dev, "using %d MSI interrupt(s)\n",
    --
    2.17.2
    \
     
     \ /
      Last update: 2020-06-09 11:19    [W:4.295 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site