linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
To: Jean-Hugues Deschenes
	<jean-hugues.deschenes-YGVykHU+fedBDgjK7y7TUQ@public.gmane.org>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [PATCH] dw_spi.c can now be built as a module.
Date: Thu, 21 Jan 2010 09:55:02 -0700	[thread overview]
Message-ID: <fa686aa41001210855l2a9c205fh9775ac73421f2cb8@mail.gmail.com> (raw)
In-Reply-To: <20100121164349.10132.24020.stgit-PR71IgaHmJalNznWqnLNUK6RkeBMCJyt@public.gmane.org>

On Thu, Jan 21, 2010 at 9:44 AM, Jean-Hugues Deschenes
<jean-hugues.deschenes-YGVykHU+fedBDgjK7y7TUQ@public.gmane.org> wrote:
> dw_spi.c can now be built as a module.
>
> Signed-off-by: Jean-Hugues Deschenes <jean-hugues.deschenes-YGVykHU+fedBDgjK7y7TUQ@public.gmane.org>

I've picked this up, but....

> diff --git a/drivers/spi/dw_spi.c b/drivers/spi/dw_spi.c
> index 4b5a9a1..754f21c 100644
> --- a/drivers/spi/dw_spi.c
> +++ b/drivers/spi/dw_spi.c
> @@ -940,6 +940,17 @@ int dw_spi_resume_host(struct dw_spi *dws)
>  }
>  EXPORT_SYMBOL(dw_spi_resume_host);
>
> +static int __init dw_spi_init(void)
> +{
> +       return 0;
> +}
> +module_init(dw_spi_init);
> +
> +static void __exit dw_spi_exit(void)
> +{
> +}
> +module_exit(dw_spi_exit);

Modules are not required to have module_init() and module_exit()
hooks.  I've dropped this chunk.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev

      parent reply	other threads:[~2010-01-21 16:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-21 16:44 [PATCH] dw_spi.c can now be built as a module Jean-Hugues Deschenes
     [not found] ` <20100121164349.10132.24020.stgit-PR71IgaHmJalNznWqnLNUK6RkeBMCJyt@public.gmane.org>
2010-01-21 16:55   ` Grant Likely [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=fa686aa41001210855l2a9c205fh9775ac73421f2cb8@mail.gmail.com \
    --to=grant.likely-s3s/wqlpoipyb63q8fvjnq@public.gmane.org \
    --cc=jean-hugues.deschenes-YGVykHU+fedBDgjK7y7TUQ@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /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;
as well as URLs for NNTP newsgroup(s).