Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211179
b: refs/heads/master
c: 1dd6b20
h: refs/heads/master
i:
  211177: 0d42b26
  211175: 48e1a7b
v: v3
  • Loading branch information
Jin Dongming authored and Len Brown committed Sep 29, 2010
1 parent ca358e0 commit 3c2abf0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 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: bad97c37db9c1ee36de8ac58f9f73931d15a2e94
refs/heads/master: 1dd6b20e368765223c31569d364219785b24700b
2 changes: 1 addition & 1 deletion trunk/drivers/acpi/apei/ghes.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ static int __devinit ghes_probe(struct platform_device *ghes_dev)
struct ghes *ghes = NULL;
int rc = -EINVAL;

generic = ghes_dev->dev.platform_data;
generic = *(struct acpi_hest_generic **)ghes_dev->dev.platform_data;
if (!generic->enabled)
return -ENODEV;

Expand Down
11 changes: 7 additions & 4 deletions trunk/drivers/acpi/apei/hest.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,20 +137,23 @@ static int hest_parse_ghes_count(struct acpi_hest_header *hest_hdr, void *data)

static int hest_parse_ghes(struct acpi_hest_header *hest_hdr, void *data)
{
struct acpi_hest_generic *generic;
struct platform_device *ghes_dev;
struct ghes_arr *ghes_arr = data;
int rc;

if (hest_hdr->type != ACPI_HEST_TYPE_GENERIC_ERROR)
return 0;
generic = (struct acpi_hest_generic *)hest_hdr;
if (!generic->enabled)

if (!((struct acpi_hest_generic *)hest_hdr)->enabled)
return 0;
ghes_dev = platform_device_alloc("GHES", hest_hdr->source_id);
if (!ghes_dev)
return -ENOMEM;
ghes_dev->dev.platform_data = generic;

rc = platform_device_add_data(ghes_dev, &hest_hdr, sizeof(void *));
if (rc)
goto err;

rc = platform_device_add(ghes_dev);
if (rc)
goto err;
Expand Down

0 comments on commit 3c2abf0

Please sign in to comment.