mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Shem Multinymous" <multinymous@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: "Andrew Morton" <akpm@osdl.org>, "Robert Love" <rlove@rlove.org>,
	"Greg Kroah-Hartman" <gregkh@suse.de>,
	hdaps-devel@lists.sourceforge.net, "Pavel Machek" <pavel@suse.cz>,
	"Jean Delvare" <khali@linux-fr.org>
Subject: [-mm patch] hdaps: Add explicit hardware configuration functions - fix
Date: Wed, 16 Aug 2006 01:26:07 +0300	[thread overview]
Message-ID: <41840b750608151526r19748630y75118a2f5032ca6@mail.gmail.com> (raw)

Fixes two things about hdaps_check_ec() in the hdaps driver:
1. Remove the __init, it may be called well after module init, during resume.
2. Remove an unused parameter.

Signed-off-by: Shem Multinymous <multinymous@gmail.com>
---
This applies on top of
hdaps-add-explicit-hardware-configuration-functions.patch
currently in -mm
(LKML: "[PATCH 08/12] hdaps: Add explicit hardware configuration functions").

Andrew, do you prefer to get the full rolled-up patch in such cases?

--- a/drivers/hwmon/hdaps.c
+++ b/drivers/hwmon/hdaps.c
@@ -305,7 +305,7 @@ static int hdaps_get_ec_mode(u8 *mode)
  * Follows the clean-room spec for HDAPS; we don't know what it means.
  * Returns zero on success and negative error code on failure.  Can sleep.
  */
-static int __init hdaps_check_ec(u8 *mode)
+static int hdaps_check_ec()
 {
 	const struct thinkpad_ec_row args =
 		{ .mask=0x0003, .val={0x17, 0x81} };
@@ -343,7 +343,7 @@ static int hdaps_device_init(void)
 	if (mode==0x00)
 		{ ABORT_INIT("accelerometer not available"); goto bad; }

-	if (hdaps_check_ec(&mode))
+	if (hdaps_check_ec())
 		{ ABORT_INIT("hdaps_check_ec failed"); goto bad; }

 	if (hdaps_set_power(1))

             reply	other threads:[~2006-08-15 22:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-15 22:26 Shem Multinymous [this message]
2006-08-15 22:42 ` Pavel Machek
2006-08-16  6:27 ` Andrew Morton

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=41840b750608151526r19748630y75118a2f5032ca6@mail.gmail.com \
    --to=multinymous@gmail.com \
    --cc=akpm@osdl.org \
    --cc=gregkh@suse.de \
    --cc=hdaps-devel@lists.sourceforge.net \
    --cc=khali@linux-fr.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    --cc=rlove@rlove.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

all inboxes | Powered by JetHome®