eeepc-laptop-trace.patch
| b/drivers/platform/x86/eeepc-laptop.c | ||
|---|---|---|
| 625 | 625 |
struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
|
| 626 | 626 |
int result; |
| 627 | 627 | |
| 628 |
pr_info("check 1\n");
|
|
| 628 | 629 |
result = acpi_bus_get_status(ehotk->device); |
| 629 | 630 |
if (result) |
| 630 | 631 |
return result; |
| 632 |
pr_info("init 2\n");
|
|
| 631 | 633 |
if (ehotk->device->status.present) {
|
| 632 | 634 |
if (write_acpi_int(ehotk->handle, "INIT", ehotk->init_flag, |
| 633 | 635 |
&buffer)) {
|
| ... | ... | |
| 1255 | 1257 |
struct device *dev; |
| 1256 | 1258 |
int result; |
| 1257 | 1259 | |
| 1260 |
pr_info("add 1\n");
|
|
| 1258 | 1261 |
if (!device) |
| 1259 | 1262 |
return -EINVAL; |
| 1260 | 1263 |
pr_notice(EEEPC_HOTK_NAME "\n"); |
| ... | ... | |
| 1268 | 1271 |
device->driver_data = ehotk; |
| 1269 | 1272 |
ehotk->device = device; |
| 1270 | 1273 | |
| 1274 |
pr_info("add 2\n");
|
|
| 1271 | 1275 |
result = eeepc_hotk_check(); |
| 1272 | 1276 |
if (result) |
| 1273 | 1277 |
goto fail_platform_driver; |
| 1278 |
pr_info("add 3\n");
|
|
| 1274 | 1279 |
eeepc_enable_camera(); |
| 1275 | 1280 | |
| 1276 | 1281 |
/* Register platform stuff */ |
| ... | ... | |
| 1364 | 1369 |
{
|
| 1365 | 1370 |
int result; |
| 1366 | 1371 | |
| 1372 |
pr_info("init 1\n");
|
|
| 1367 | 1373 |
if (acpi_disabled) |
| 1368 | 1374 |
return -ENODEV; |
| 1375 |
pr_info("init 2\n");
|
|
| 1369 | 1376 |
result = acpi_bus_register_driver(&eeepc_hotk_driver); |
| 1377 |
pr_info("init 3\n");
|
|
| 1370 | 1378 |
if (result < 0) |
| 1371 | 1379 |
return result; |
| 1372 | 1380 |
if (!ehotk) {
|
| 1381 |
pr_info("init 4\n");
|
|
| 1373 | 1382 |
acpi_bus_unregister_driver(&eeepc_hotk_driver); |
| 1374 | 1383 |
return -ENODEV; |
| 1375 | 1384 |
} |
| 1385 |
pr_info("init 5\n");
|
|
| 1376 | 1386 |
return 0; |
| 1377 | 1387 |
} |
| 1378 | 1388 | |