lkml.org 
[lkml]   [2020]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATCH 1/9] cxl/acpi: Add an acpi_cxl module for the CXL interconnect
    On Tue, Nov 10, 2020 at 09:43:48PM -0800, Ben Widawsky wrote:

    > +static int acpi_cxl_add(struct acpi_device *adev)
    > +{
    > + struct acpi_cxl_desc *acpi_desc;
    > + struct device *dev = &adev->dev;
    > + struct acpi_table_header *tbl;
    > + acpi_status status = AE_OK;

    Pointless init.

    > + acpi_size sz;
    > + int rc = 0;

    Pointless init.

    > + status = acpi_get_table(ACPI_SIG_CEDT, 0, &tbl);
    > + if (ACPI_FAILURE(status)) {
    > + dev_err(dev, "failed to find CEDT at startup\n");
    > + return 0;
    > + }
    > +
    > + rc = devm_add_action_or_reset(dev, acpi_cedt_put_table, tbl);
    > + if (rc)
    > + return rc;

    \
     
     \ /
      Last update: 2020-11-12 02:45    [W:3.248 / U:0.572 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site