Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Wu Zhangjin <wuzhangjin@gmail.com>
To: Greg Kroah-Hartman <gregkh@suse.de>
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
Subject: Re: [PATCH -next] drivers/staging/sm7xx: add a new framebuffer driver
Date: Fri, 20 Nov 2009 10:17:33 +0800	[thread overview]
Message-ID: <1258683453.2862.35.camel@falcon.domain.org> (raw)
In-Reply-To: <1257673141-1646-1-git-send-email-wuzhangjin@gmail.com>

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

      parent reply	other threads:[~2009-11-20  2:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1257673141-1646-1-git-send-email-wuzhangjin@gmail.com>
2009-11-19 19:38 ` [PATCH -next] drivers/staging/sm7xx: add a new framebuffer driver Greg KH
2009-11-20  2:17 ` Wu Zhangjin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1258683453.2862.35.camel@falcon.domain.org \
    --to=wuzhangjin@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@suse.de \
    --cc=huhb@lemote.com \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    --cc=teddy.wang@siliconmotion.com.cn \
    --cc=yanh@lemote.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox