apds9802als.c (2d6bed9ca93e98685bc5038d686984fd449cd978) | apds9802als.c (486a5c28c2e7d6a80c393ac7d612b77d80447b84) |
---|---|
1/* 2 * apds9802als.c - apds9802 ALS Driver 3 * 4 * Copyright (C) 2009 Intel Corp 5 * 6 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 * 8 * This program is free software; you can redistribute it and/or modify --- 240 unchanged lines hidden (view full) --- 249 pm_runtime_enable(&client->dev); 250 251 return res; 252als_error1: 253 kfree(data); 254 return res; 255} 256 | 1/* 2 * apds9802als.c - apds9802 ALS Driver 3 * 4 * Copyright (C) 2009 Intel Corp 5 * 6 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7 * 8 * This program is free software; you can redistribute it and/or modify --- 240 unchanged lines hidden (view full) --- 249 pm_runtime_enable(&client->dev); 250 251 return res; 252als_error1: 253 kfree(data); 254 return res; 255} 256 |
257static int __devexit apds9802als_remove(struct i2c_client *client) | 257static int apds9802als_remove(struct i2c_client *client) |
258{ 259 struct als_data *data = i2c_get_clientdata(client); 260 261 pm_runtime_get_sync(&client->dev); 262 263 als_set_power_state(client, false); 264 sysfs_remove_group(&client->dev.kobj, &m_als_gr); 265 --- 74 unchanged lines hidden --- | 258{ 259 struct als_data *data = i2c_get_clientdata(client); 260 261 pm_runtime_get_sync(&client->dev); 262 263 als_set_power_state(client, false); 264 sysfs_remove_group(&client->dev.kobj, &m_als_gr); 265 --- 74 unchanged lines hidden --- |