Skip to content

Commit 566e74a

Browse files
GuEe-GUIRbb666
authored andcommitted
[dm][pci] fixup the shift of class in probe
Signed-off-by: GuEe-GUI <2991707448@qq.com>
1 parent dc1c5b4 commit 566e74a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

components/drivers/pci/probe.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ rt_err_t rt_pci_setup_device(struct rt_pci_device *pdev)
342342
rt_dm_dev_set_name(&pdev->parent, "%04x:%02x:%02x.%u", rt_pci_domain(pdev),
343343
pdev->bus->number, RT_PCI_SLOT(pdev->devfn), RT_PCI_FUNC(pdev->devfn));
344344

345+
class = pdev->class >> 8;
346+
345347
switch (pdev->hdr_type)
346348
{
347349
case PCIM_HDRTYPE_NORMAL:

0 commit comments

Comments
 (0)