Fix common misspellings
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / misc / bmp085.c
index b6e1c9a6679edd11ae94738775b813ecf34632df..5f898cb706a6453ed79582c54296f2bd95bae6eb 100644 (file)
@@ -2,7 +2,7 @@
 
     This driver supports the bmp085 digital barometric pressure
     and temperature sensor from Bosch Sensortec. The datasheet
-    is avaliable from their website:
+    is available from their website:
     http://www.bosch-sensortec.com/content/language1/downloads/BST-BMP085-DS000-05.pdf
 
     A pressure measurement is issued by reading from pressure0_input.
@@ -402,7 +402,7 @@ exit:
        return status;
 }
 
-static int bmp085_probe(struct i2c_client *client,
+static int __devinit bmp085_probe(struct i2c_client *client,
                         const struct i2c_device_id *id)
 {
        struct bmp085_data *data;
@@ -429,7 +429,7 @@ static int bmp085_probe(struct i2c_client *client,
        if (err)
                goto exit_free;
 
-       dev_info(&data->client->dev, "Succesfully initialized bmp085!\n");
+       dev_info(&data->client->dev, "Successfully initialized bmp085!\n");
        goto exit;
 
 exit_free:
@@ -438,7 +438,7 @@ exit:
        return err;
 }
 
-static int bmp085_remove(struct i2c_client *client)
+static int __devexit bmp085_remove(struct i2c_client *client)
 {
        sysfs_remove_group(&client->dev.kobj, &bmp085_attr_group);
        kfree(i2c_get_clientdata(client));
@@ -458,7 +458,7 @@ static struct i2c_driver bmp085_driver = {
        },
        .id_table       = bmp085_id,
        .probe          = bmp085_probe,
-       .remove         = bmp085_remove,
+       .remove         = __devexit_p(bmp085_remove),
 
        .detect         = bmp085_detect,
        .address_list   = normal_i2c