br = kmalloc(sizeof &br, GFP_KERNEL); 
br = kmalloc(sizeof(*br), GFP_KERNEL); 
acpi_video_device_find_cap (struct acpi_video_device *device){	acpi_integer		status;	acpi_handle h_dummy1;	int i;	union acpi_object *obj = NULL;	struct acpi_video_device_brightness *br = NULL;	ACPI_FUNCTION_TRACE("acpi_video_device_find_cap");	memset( &device->cap, 0, 4);    	if( ACPI_SUCCESS(acpi_get_handle(device->handle, "_ADR", &h_dummy1))) {		device->cap._ADR = 1;	}    	if( ACPI_SUCCESS(acpi_get_handle(device->handle, "_BCL", &h_dummy1))) {		device->cap._BCL= 1;	}    	if( ACPI_SUCCESS(acpi_get_handle(device->handle, "_BCM", &h_dummy1))) {		device->cap._BCM= 1;	}    	if( ACPI_SUCCESS(acpi_get_handle(device->handle, "_DDC", &h_dummy1))) {		device->cap._DDC= 1;	}    	if( ACPI_SUCCESS(acpi_get_handle(device->handle, "_DCS", &h_dummy1))) {		device->cap._DCS = 1;	}    	if( ACPI_SUCCESS(acpi_get_handle(device->handle, "_DGS", &h_dummy1))) {		device->cap._DGS = 1;	}    	if( ACPI_SUCCESS(acpi_get_handle(device->handle, "_DSS", &h_dummy1))) {		device->cap._DSS = 1;	}	status = acpi_video_device_lcd_query_levels(device, &obj);	if (obj && obj->type == ACPI_TYPE_PACKAGE && obj->package.count >= 2) {		int count = 0;		union acpi_object *o;				br = kmalloc(sizeof &br, GFP_KERNEL);		if (!br) {			printk(KERN_ERR "can't allocate memory\n");		} else {			memset(br, 0, sizeof &br);			br->levels = kmalloc(obj->package.count * sizeof &br->levels, GFP_KERNEL);			if (!br->levels)				goto out;			for (i = 0; i < obj->package.count; i++) {				o = (union acpi_object *) &obj->package.elements[i];				if (o->type != ACPI_TYPE_INTEGER) {					ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid data\n"));					continue;				}				br->levels[count] = (u32) o->integer.value;				count++;			}out:			if (count < 2) {				if (br->levels)					kfree(br->levels);				kfree(br);			} else {				br->count = count;				device->brightness = br;				ACPI_DEBUG_PRINT((ACPI_DB_INFO, "found %d brightness levels\n", count));			}		}	}	if (obj)		kfree(obj);	return_VOID;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/d1dd0c23916bd781de27bc5ec1c295064e9ce9cc/video.c/clean/drivers/acpi/video.c