Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350960
b: refs/heads/master
c: 51fac83
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki committed Jan 25, 2013
1 parent a0a35c3 commit 5db7361
Show file tree
Hide file tree
Showing 45 changed files with 71 additions and 74 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc38e519132f62d52db0a04d2eaed0d7c52fb165
refs/heads/master: 51fac8388a0325a43f0ae67453ece2c373e2ec28
2 changes: 1 addition & 1 deletion trunk/arch/ia64/hp/common/aml_nfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static int aml_nfw_add(struct acpi_device *device)
return aml_nfw_add_global_handler();
}

static int aml_nfw_remove(struct acpi_device *device, int type)
static int aml_nfw_remove(struct acpi_device *device)
{
return aml_nfw_remove_global_handler();
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/platform/olpc/olpc-xo15-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static int xo15_sci_add(struct acpi_device *device)
return r;
}

static int xo15_sci_remove(struct acpi_device *device, int type)
static int xo15_sci_remove(struct acpi_device *device)
{
acpi_disable_gpe(NULL, xo15_sci_gpe);
acpi_remove_gpe_handler(NULL, xo15_sci_gpe, xo15_sci_gpe_handler);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/acpi/ac.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static int acpi_ac_open_fs(struct inode *inode, struct file *file);
#endif

static int acpi_ac_add(struct acpi_device *device);
static int acpi_ac_remove(struct acpi_device *device, int type);
static int acpi_ac_remove(struct acpi_device *device);
static void acpi_ac_notify(struct acpi_device *device, u32 event);

static const struct acpi_device_id ac_device_ids[] = {
Expand Down Expand Up @@ -337,7 +337,7 @@ static int acpi_ac_resume(struct device *dev)
}
#endif

static int acpi_ac_remove(struct acpi_device *device, int type)
static int acpi_ac_remove(struct acpi_device *device)
{
struct acpi_ac *ac = NULL;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/acpi/acpi_memhotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ MODULE_LICENSE("GPL");
#define MEMORY_POWER_OFF_STATE 2

static int acpi_memory_device_add(struct acpi_device *device);
static int acpi_memory_device_remove(struct acpi_device *device, int type);
static int acpi_memory_device_remove(struct acpi_device *device);

static const struct acpi_device_id memory_device_ids[] = {
{ACPI_MEMORY_DEVICE_HID, 0},
Expand Down Expand Up @@ -415,7 +415,7 @@ static int acpi_memory_device_add(struct acpi_device *device)
return result;
}

static int acpi_memory_device_remove(struct acpi_device *device, int type)
static int acpi_memory_device_remove(struct acpi_device *device)
{
struct acpi_memory_device *mem_device = NULL;
int result;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/acpi/acpi_pad.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,7 @@ static int acpi_pad_add(struct acpi_device *device)
return 0;
}

static int acpi_pad_remove(struct acpi_device *device,
int type)
static int acpi_pad_remove(struct acpi_device *device)
{
mutex_lock(&isolated_cpus_lock);
acpi_pad_idle_cpus(0);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/acpi/battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ static int acpi_battery_add(struct acpi_device *device)
return result;
}

static int acpi_battery_remove(struct acpi_device *device, int type)
static int acpi_battery_remove(struct acpi_device *device)
{
struct acpi_battery *battery = NULL;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/acpi/button.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static const struct acpi_device_id button_device_ids[] = {
MODULE_DEVICE_TABLE(acpi, button_device_ids);

static int acpi_button_add(struct acpi_device *device);
static int acpi_button_remove(struct acpi_device *device, int type);
static int acpi_button_remove(struct acpi_device *device);
static void acpi_button_notify(struct acpi_device *device, u32 event);

#ifdef CONFIG_PM_SLEEP
Expand Down Expand Up @@ -433,7 +433,7 @@ static int acpi_button_add(struct acpi_device *device)
return error;
}

static int acpi_button_remove(struct acpi_device *device, int type)
static int acpi_button_remove(struct acpi_device *device)
{
struct acpi_button *button = acpi_driver_data(device);

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/acpi/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ MODULE_DESCRIPTION("ACPI container driver");
MODULE_LICENSE("GPL");

static int acpi_container_add(struct acpi_device *device);
static int acpi_container_remove(struct acpi_device *device, int type);
static int acpi_container_remove(struct acpi_device *device);

static const struct acpi_device_id container_device_ids[] = {
{"ACPI0004", 0},
Expand Down Expand Up @@ -125,7 +125,7 @@ static int acpi_container_add(struct acpi_device *device)
return 0;
}

static int acpi_container_remove(struct acpi_device *device, int type)
static int acpi_container_remove(struct acpi_device *device)
{
acpi_status status = AE_OK;
struct acpi_container *pc = NULL;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/acpi/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ static int acpi_ec_add(struct acpi_device *device)
return ret;
}

static int acpi_ec_remove(struct acpi_device *device, int type)
static int acpi_ec_remove(struct acpi_device *device)
{
struct acpi_ec *ec;
struct acpi_ec_query_handler *handler, *tmp;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/acpi/fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ MODULE_DESCRIPTION("ACPI Fan Driver");
MODULE_LICENSE("GPL");

static int acpi_fan_add(struct acpi_device *device);
static int acpi_fan_remove(struct acpi_device *device, int type);
static int acpi_fan_remove(struct acpi_device *device);

static const struct acpi_device_id fan_device_ids[] = {
{"PNP0C0B", 0},
Expand Down Expand Up @@ -172,7 +172,7 @@ static int acpi_fan_add(struct acpi_device *device)
return result;
}

static int acpi_fan_remove(struct acpi_device *device, int type)
static int acpi_fan_remove(struct acpi_device *device)
{
struct thermal_cooling_device *cdev = acpi_driver_data(device);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/acpi/hed.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static int acpi_hed_add(struct acpi_device *device)
return 0;
}

static int acpi_hed_remove(struct acpi_device *device, int type)
static int acpi_hed_remove(struct acpi_device *device)
{
hed_handle = NULL;
return 0;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/acpi/pci_link.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ACPI_MODULE_NAME("pci_link");
#define ACPI_PCI_LINK_MAX_POSSIBLE 16

static int acpi_pci_link_add(struct acpi_device *device);
static int acpi_pci_link_remove(struct acpi_device *device, int type);
static int acpi_pci_link_remove(struct acpi_device *device);

static const struct acpi_device_id link_device_ids[] = {
{"PNP0C0F", 0},
Expand Down Expand Up @@ -766,7 +766,7 @@ static void irqrouter_resume(void)
}
}

static int acpi_pci_link_remove(struct acpi_device *device, int type)
static int acpi_pci_link_remove(struct acpi_device *device)
{
struct acpi_pci_link *link;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/acpi/pci_root.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ACPI_MODULE_NAME("pci_root");
#define ACPI_PCI_ROOT_CLASS "pci_bridge"
#define ACPI_PCI_ROOT_DEVICE_NAME "PCI Root Bridge"
static int acpi_pci_root_add(struct acpi_device *device);
static int acpi_pci_root_remove(struct acpi_device *device, int type);
static int acpi_pci_root_remove(struct acpi_device *device);

#define ACPI_PCIE_REQ_SUPPORT (OSC_EXT_PCI_CONFIG_SUPPORT \
| OSC_ACTIVE_STATE_PWR_SUPPORT \
Expand Down Expand Up @@ -627,7 +627,7 @@ static int acpi_pci_root_add(struct acpi_device *device)
return result;
}

static int acpi_pci_root_remove(struct acpi_device *device, int type)
static int acpi_pci_root_remove(struct acpi_device *device)
{
acpi_status status;
acpi_handle handle;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/acpi/processor_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ MODULE_DESCRIPTION("ACPI Processor Driver");
MODULE_LICENSE("GPL");

static int acpi_processor_add(struct acpi_device *device);
static int acpi_processor_remove(struct acpi_device *device, int type);
static int acpi_processor_remove(struct acpi_device *device);
static void acpi_processor_notify(struct acpi_device *device, u32 event);
static acpi_status acpi_processor_hotadd_init(struct acpi_processor *pr);
static int acpi_processor_handle_eject(struct acpi_processor *pr);
Expand Down Expand Up @@ -610,7 +610,7 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device)
return result;
}

static int acpi_processor_remove(struct acpi_device *device, int type)
static int acpi_processor_remove(struct acpi_device *device)
{
struct acpi_processor *pr = NULL;

Expand All @@ -623,7 +623,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type)
if (pr->id >= nr_cpu_ids)
goto free;

if (type == ACPI_BUS_REMOVAL_EJECT) {
if (device->removal_type == ACPI_BUS_REMOVAL_EJECT) {
if (acpi_processor_handle_eject(pr))
return -EINVAL;
}
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/acpi/sbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ struct acpi_sbs {

#define to_acpi_sbs(x) container_of(x, struct acpi_sbs, charger)

static int acpi_sbs_remove(struct acpi_device *device, int type);
static int acpi_sbs_remove(struct acpi_device *device);
static int acpi_battery_get_state(struct acpi_battery *battery);

static inline int battery_scale(int log)
Expand Down Expand Up @@ -949,11 +949,11 @@ static int acpi_sbs_add(struct acpi_device *device)
acpi_smbus_register_callback(sbs->hc, acpi_sbs_callback, sbs);
end:
if (result)
acpi_sbs_remove(device, 0);
acpi_sbs_remove(device);
return result;
}

static int acpi_sbs_remove(struct acpi_device *device, int type)
static int acpi_sbs_remove(struct acpi_device *device)
{
struct acpi_sbs *sbs;
int id;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/acpi/sbshc.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct acpi_smb_hc {
};

static int acpi_smbus_hc_add(struct acpi_device *device);
static int acpi_smbus_hc_remove(struct acpi_device *device, int type);
static int acpi_smbus_hc_remove(struct acpi_device *device);

static const struct acpi_device_id sbs_device_ids[] = {
{"ACPI0001", 0},
Expand Down Expand Up @@ -296,7 +296,7 @@ static int acpi_smbus_hc_add(struct acpi_device *device)

extern void acpi_ec_remove_query_handler(struct acpi_ec *ec, u8 query_bit);

static int acpi_smbus_hc_remove(struct acpi_device *device, int type)
static int acpi_smbus_hc_remove(struct acpi_device *device)
{
struct acpi_smb_hc *hc;

Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,7 @@ static int acpi_device_probe(struct device * dev)
ret = acpi_device_install_notify_handler(acpi_dev);
if (ret) {
if (acpi_drv->ops.remove)
acpi_drv->ops.remove(acpi_dev,
acpi_dev->removal_type);
acpi_drv->ops.remove(acpi_dev);
return ret;
}
}
Expand All @@ -600,7 +599,7 @@ static int acpi_device_remove(struct device * dev)
if (acpi_drv->ops.notify)
acpi_device_remove_notify_handler(acpi_dev);
if (acpi_drv->ops.remove)
acpi_drv->ops.remove(acpi_dev, acpi_dev->removal_type);
acpi_drv->ops.remove(acpi_dev);
}
acpi_dev->driver = NULL;
acpi_dev->driver_data = NULL;
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/acpi/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module_param(psv, int, 0644);
MODULE_PARM_DESC(psv, "Disable or override all passive trip points.");

static int acpi_thermal_add(struct acpi_device *device);
static int acpi_thermal_remove(struct acpi_device *device, int type);
static int acpi_thermal_remove(struct acpi_device *device);
static void acpi_thermal_notify(struct acpi_device *device, u32 event);

static const struct acpi_device_id thermal_device_ids[] = {
Expand Down Expand Up @@ -1111,7 +1111,7 @@ static int acpi_thermal_add(struct acpi_device *device)
return result;
}

static int acpi_thermal_remove(struct acpi_device *device, int type)
static int acpi_thermal_remove(struct acpi_device *device)
{
struct acpi_thermal *tz = NULL;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/acpi/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module_param(use_bios_initial_backlight, bool, 0644);

static int register_count = 0;
static int acpi_video_bus_add(struct acpi_device *device);
static int acpi_video_bus_remove(struct acpi_device *device, int type);
static int acpi_video_bus_remove(struct acpi_device *device);
static void acpi_video_bus_notify(struct acpi_device *device, u32 event);

static const struct acpi_device_id video_device_ids[] = {
Expand Down Expand Up @@ -1740,7 +1740,7 @@ static int acpi_video_bus_add(struct acpi_device *device)
return error;
}

static int acpi_video_bus_remove(struct acpi_device *device, int type)
static int acpi_video_bus_remove(struct acpi_device *device)
{
struct acpi_video_bus *video = NULL;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/hpet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ static int hpet_acpi_add(struct acpi_device *device)
return hpet_alloc(&data);
}

static int hpet_acpi_remove(struct acpi_device *device, int type)
static int hpet_acpi_remove(struct acpi_device *device)
{
/* XXX need to unregister clocksource, dealloc mem, etc */
return -EINVAL;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/sonypi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ static int sonypi_acpi_add(struct acpi_device *device)
return 0;
}

static int sonypi_acpi_remove(struct acpi_device *device, int type)
static int sonypi_acpi_remove(struct acpi_device *device)
{
sonypi_acpi_device = NULL;
return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/hwmon/acpi_power_meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ static int acpi_power_meter_add(struct acpi_device *device)
return res;
}

static int acpi_power_meter_remove(struct acpi_device *device, int type)
static int acpi_power_meter_remove(struct acpi_device *device)
{
struct acpi_power_meter_resource *resource;

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/hwmon/asus_atk0110.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ struct atk_acpi_input_buf {
};

static int atk_add(struct acpi_device *device);
static int atk_remove(struct acpi_device *device, int type);
static int atk_remove(struct acpi_device *device);
static void atk_print_sensor(struct atk_data *data, union acpi_object *obj);
static int atk_read_value(struct atk_sensor_data *sensor, u64 *value);
static void atk_free_sensors(struct atk_data *data);
Expand Down Expand Up @@ -1416,7 +1416,7 @@ static int atk_add(struct acpi_device *device)
return err;
}

static int atk_remove(struct acpi_device *device, int type)
static int atk_remove(struct acpi_device *device)
{
struct atk_data *data = device->driver_data;
dev_dbg(&device->dev, "removing...\n");
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/i2c/busses/i2c-scmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ static int acpi_smbus_cmi_add(struct acpi_device *device)
return -EIO;
}

static int acpi_smbus_cmi_remove(struct acpi_device *device, int type)
static int acpi_smbus_cmi_remove(struct acpi_device *device)
{
struct acpi_smbus_cmi *smbus_cmi = acpi_driver_data(device);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/input/misc/atlas_btns.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static int atlas_acpi_button_add(struct acpi_device *device)
return err;
}

static int atlas_acpi_button_remove(struct acpi_device *device, int type)
static int atlas_acpi_button_remove(struct acpi_device *device)
{
acpi_status status;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/platform/x86/asus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,7 @@ static int asus_acpi_add(struct acpi_device *device)
return result;
}

static int asus_acpi_remove(struct acpi_device *device, int type)
static int asus_acpi_remove(struct acpi_device *device)
{
struct asus_laptop *asus = acpi_driver_data(device);

Expand Down
Loading

0 comments on commit 5db7361

Please sign in to comment.