Lines 328-340
int tpm_add_ppi(struct kobject *parent)
Link Here
|
328 |
/* Cache TPM ACPI handle and version string */ |
328 |
/* Cache TPM ACPI handle and version string */ |
329 |
acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, |
329 |
acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX, |
330 |
ppi_callback, NULL, NULL, &tpm_ppi_handle); |
330 |
ppi_callback, NULL, NULL, &tpm_ppi_handle); |
331 |
if (tpm_ppi_handle == NULL) |
331 |
return tpm_ppi_handle ? sysfs_create_group(parent, &ppi_attr_grp) : 0; |
332 |
return -ENODEV; |
|
|
333 |
|
334 |
return sysfs_create_group(parent, &ppi_attr_grp); |
335 |
} |
332 |
} |
336 |
|
333 |
|
337 |
void tpm_remove_ppi(struct kobject *parent) |
334 |
void tpm_remove_ppi(struct kobject *parent) |
338 |
{ |
335 |
{ |
339 |
sysfs_remove_group(parent, &ppi_attr_grp); |
336 |
if (tpm_ppi_handle) |
|
|
337 |
sysfs_remove_group(parent, &ppi_attr_grp); |
340 |
} |
338 |
} |