Title: [8882] trunk/drivers/regulator/ad5398.c: ad5398: drop const on regulator structs since they dont work, and add proper hotplug section markings to the probe/remove funcs
Revision
8882
Author
vapier
Date
2010-06-02 17:45:23 -0400 (Wed, 02 Jun 2010)

Log Message

ad5398: drop const on regulator structs since they dont work, and add proper hotplug section markings to the probe/remove funcs

Modified Paths

Diff

Modified: trunk/drivers/regulator/ad5398.c (8881 => 8882)


--- trunk/drivers/regulator/ad5398.c	2010-06-02 10:30:50 UTC (rev 8881)
+++ trunk/drivers/regulator/ad5398.c	2010-06-02 21:45:23 UTC (rev 8882)
@@ -176,7 +176,7 @@
 	return ret;
 }
 
-static const struct regulator_ops ad5398_ops = {
+static struct regulator_ops ad5398_ops = {
 	.get_current_limit = ad5398_get_current_limit,
 	.set_current_limit = ad5398_set_current_limit,
 	.enable = ad5398_enable,
@@ -184,12 +184,12 @@
 	.is_enabled = ad5398_is_enabled,
 };
 
-static const struct regulator_desc ad5398_reg = {
-		.name = "isink",
-		.id = 0,
-		.ops = &ad5398_ops,
-		.type = REGULATOR_CURRENT,
-		.owner = THIS_MODULE,
+static struct regulator_desc ad5398_reg = {
+	.name = "isink",
+	.id = 0,
+	.ops = &ad5398_ops,
+	.type = REGULATOR_CURRENT,
+	.owner = THIS_MODULE,
 };
 
 struct ad5398_current_data_format {
@@ -206,8 +206,8 @@
 };
 MODULE_DEVICE_TABLE(i2c, ad5398_id);
 
-static int ad5398_probe(struct i2c_client *client,
-		      const struct i2c_device_id *id)
+static int __devinit ad5398_probe(struct i2c_client *client,
+				  const struct i2c_device_id *id)
 {
 	struct regulator_dev *rdev;
 	struct regulator_init_data *init_data = client->dev.platform_data;
@@ -248,7 +248,7 @@
 	return ret;
 }
 
-static int ad5398_remove(struct i2c_client *client)
+static int __devexit ad5398_remove(struct i2c_client *client)
 {
 	struct ad5398_chip_info *chip = i2c_get_clientdata(client);
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to