From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Date: Thu, 19 Dec 2013 16:36:06 +0000 Subject: Re: [PATCH v3] x86: sysfb: remove sysfb when probing real hw Message-Id: <20131219163606.GA29243@gmail.com> List-Id: References: <1387374611-12493-1-git-send-email-dh.herrmann@gmail.com> <1387448038-8260-1-git-send-email-dh.herrmann@gmail.com> In-Reply-To: <1387448038-8260-1-git-send-email-dh.herrmann@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: David Herrmann Cc: linux-kernel@vger.kernel.org, Takashi Iwai , Stephen Warren , the arch/x86 maintainers , linux-fbdev@vger.kernel.org, Geert Uytterhoeven , stable@vger.kernel.org * David Herrmann wrote: > --- a/drivers/video/fbmem.c > +++ b/drivers/video/fbmem.c > @@ -35,6 +35,9 @@ > > #include > > +#if IS_ENABLED(CONFIG_X86) > +#include > +#endif I think this can be written as: #ifdef CONFIG_X86 # include #endif also ... the dependency on a large, unrelated option like CONFIG_X86 looks pretty ugly here - is there no other, more specific CONFIG_ option that can be used here - such as CONFIG_FB_SIMPLE or CONFIG_X86_SYSFB? > +#if IS_ENABLED(CONFIG_X86) > + sysfb_unregister(apert, primary); > +#endif Ditto. Thanks, Ingo