linux-mips
[Top] [All Lists]

Re: [PATCH -next] drivers/staging/sm7xx: add a new framebuffer driver

To: Greg Kroah-Hartman <gregkh@suse.de>
Subject: Re: [PATCH -next] drivers/staging/sm7xx: add a new framebuffer driver
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Fri, 20 Nov 2009 10:17:33 +0800
Cc: Ralf Baechle <ralf@linux-mips.org>, devel@driverdev.osuosl.org, linux-mips@linux-mips.org, Teddy Wang <teddy.wang@siliconmotion.com.cn>, huhb@lemote.com, yanh@lemote.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=yXmLiObW3VQt/O1plf8faFneIhlXfd3Pi0MySrYFG0U=; b=FyWetN/t+T2m302QPX2TmqgvTw3uevp1TB/QrqUGxswp5BUt0dC2zQ0iJVGDnddCMh +rk8hgzcOjPhdYM/ery9abSqZWUhnFvPG+wfsCuSOUhnTwADjlnr/DTSZuKoQwzjC4XA e07Vsr8fGfRAE5KH0uJD3cE2iz3pGD/IV5E6c=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=k9NDFDHmF6hfkfoTQ9nr2HapoYBcPiqcM6Cb+WdCoT2BOIOHPo41B4jut5veL/Wfp5 tL50MXZFu36Mv6+X8h0QA1j6bZ2zOZHzfclONhFl8pWRpsPEtEugh/JNeEBf/abXzqjC CUt6eY9m4s3jkVUmHovzavCr2XjwlV7bnkEw4=
In-reply-to: <1257673141-1646-1-git-send-email-wuzhangjin@gmail.com>
Organization: DSLab, Lanzhou University, China
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1257673141-1646-1-git-send-email-wuzhangjin@gmail.com>
Reply-to: wuzhangjin@gmail.com
Sender: linux-mips-bounce@linux-mips.org
On Sun, 2009-11-08 at 17:39 +0800, Wu wrote:
[...]
> +/* Jason (08/14/2009)
> + * suspend function, called when the suspend event is triggered
> + */
> +static int smtcfb_suspend(struct pci_dev *pdev, pm_message_t msg)
> +{

__maybe_unused is needed before smtcfb_suspend() to let gcc not complain
about "function defined but not used" when CONFIG_PM is disabled.

[...]
> +static int smtcfb_resume(struct pci_dev *pdev)
> +{

Here too.

> +static struct pci_driver smtcfb_driver = {
> +     .name = "smtcfb",
> +     .id_table = smtcfb_pci_table,
> +     .probe = smtcfb_pci_probe,
> +     .remove = __devexit_p(smtcfb_pci_remove),
> +#ifdef CONFIG_PM
> +     .suspend = smtcfb_suspend,
> +     .resume = smtcfb_resume,
> +#endif
> +};
> +

Best Regards,
        Wu Zhangjin


<Prev in Thread] Current Thread [Next in Thread>