isl29003.c (80c8ae289266529445fad030fabf5fcf01ccda0d) isl29003.c (486a5c28c2e7d6a80c393ac7d612b77d80447b84)
1/*
2 * isl29003.c - Linux kernel module for
3 * Intersil ISL29003 ambient light sensor
4 *
5 * See file:Documentation/misc-devices/isl29003
6 *
7 * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de>
8 *

--- 387 unchanged lines hidden (view full) ---

396 dev_info(&client->dev, "driver version %s enabled\n", DRIVER_VERSION);
397 return 0;
398
399exit_kfree:
400 kfree(data);
401 return err;
402}
403
1/*
2 * isl29003.c - Linux kernel module for
3 * Intersil ISL29003 ambient light sensor
4 *
5 * See file:Documentation/misc-devices/isl29003
6 *
7 * Copyright (c) 2009 Daniel Mack <daniel@caiaq.de>
8 *

--- 387 unchanged lines hidden (view full) ---

396 dev_info(&client->dev, "driver version %s enabled\n", DRIVER_VERSION);
397 return 0;
398
399exit_kfree:
400 kfree(data);
401 return err;
402}
403
404static int __devexit isl29003_remove(struct i2c_client *client)
404static int isl29003_remove(struct i2c_client *client)
405{
406 sysfs_remove_group(&client->dev.kobj, &isl29003_attr_group);
407 isl29003_set_power_state(client, 0);
408 kfree(i2c_get_clientdata(client));
409 return 0;
410}
411
412#ifdef CONFIG_PM

--- 51 unchanged lines hidden ---
405{
406 sysfs_remove_group(&client->dev.kobj, &isl29003_attr_group);
407 isl29003_set_power_state(client, 0);
408 kfree(i2c_get_clientdata(client));
409 return 0;
410}
411
412#ifdef CONFIG_PM

--- 51 unchanged lines hidden ---