projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1079def
)
staging: iio: ak8975: Make it behave better as modules
author
Shubhrajyoti D
<
[email protected]
>
Mon, 4 Jun 2012 09:41:05 +0000
(15:11 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Tue, 5 Jun 2012 05:06:18 +0000
(14:06 +0900)
The memory regions of the probe and remove are move
to __devinit and __devexit respectively.
Acked-by: Jonathan Cameron <
[email protected]
>
Signed-off-by: Shubhrajyoti D <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/iio/magnetometer/ak8975.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/magnetometer/ak8975.c
b/drivers/staging/iio/magnetometer/ak8975.c
index 5834e4a70f8ce936bfe40ff28379b0158d5f7d2e..7562cafb26bb53d3457d9ec3e140811827ad555d 100644
(file)
--- a/
drivers/staging/iio/magnetometer/ak8975.c
+++ b/
drivers/staging/iio/magnetometer/ak8975.c
@@
-471,7
+471,7
@@
static const struct iio_info ak8975_info = {
.driver_module = THIS_MODULE,
};
-static int ak8975_probe(struct i2c_client *client,
+static int
__devinit
ak8975_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
struct ak8975_data *data;
@@
-545,7
+545,7
@@
exit:
return err;
}
-static int ak8975_remove(struct i2c_client *client)
+static int
__devexit
ak8975_remove(struct i2c_client *client)
{
struct iio_dev *indio_dev = i2c_get_clientdata(client);
struct ak8975_data *data = iio_priv(indio_dev);