Thread (13 messages) 13 messages, 4 authors, 2017-06-25

Re: [PATCH 1/2] staging: sm750fb: avoid conflicting vesafb

flat view

From: Andy Shevchenko <hidden>
Date: 2017-06-19 20:47:23
Also in: lkml

On Mon, Jun 19, 2017 at 11:32 PM, Sudip Mukherjee
[off-list ref] wrote:

quoted hunk ↗ jump to hunk
+#ifdef CONFIG_X86
+       primary = pdev->resource[PCI_ROM_RESOURCE].flags &
+                                       IORESOURCE_ROM_SHADOW;
+#endif
Why do we need #ifdef?

In any case you may introduce a temporary variable to have pointer to resource

struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];

-- 
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help