]> www.infradead.org Git - users/willy/linux.git/commitdiff
media: Revert "media: atomisp: Add some ACPI detection info"
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 4 Jun 2020 12:40:40 +0000 (14:40 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Jun 2020 17:16:34 +0000 (19:16 +0200)
This reverts commit 0d64e9420583cbc3c4a3f949ebe38fd8f7769281.

As gmin_subdev_add() now takes the ACPI handle directly,
we can deprecate the code that were doing this inside each
I2C driver.

PS.: This also reverts commit c03496b3bd92 ("media: atomisp: add a notice about possible leak resources")

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/i2c/atomisp-gc0310.c
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c
drivers/staging/media/atomisp/i2c/atomisp-lm3554.c
drivers/staging/media/atomisp/i2c/atomisp-mt9m114.c
drivers/staging/media/atomisp/i2c/atomisp-ov2680.c
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
drivers/staging/media/atomisp/i2c/ov5693/atomisp-ov5693.c

index 3fbd585d45edb8d538954afc5a1cf3d30ecf2b35..2b71de722ec3f2e4eb2f4b69d3315a3ed82badc6 100644 (file)
@@ -1310,17 +1310,6 @@ static int gc0310_probe(struct i2c_client *client)
        int ret;
        void *pdata;
        unsigned int i;
-       acpi_handle handle;
-       struct acpi_device *adev;
-
-       handle = ACPI_HANDLE(&client->dev);
-       if (!handle || acpi_bus_get_device(handle, &adev)) {
-               dev_err(&client->dev, "Error could not get ACPI device\n");
-               return -ENODEV;
-       }
-       pr_info("%s: ACPI detected it on bus ID=%s, HID=%s\n",
-               __func__, acpi_device_bid(adev), acpi_device_hid(adev));
-       // FIXME: may need to release resources allocated by acpi_bus_get_device()
 
        dev = kzalloc(sizeof(*dev), GFP_KERNEL);
        if (!dev)
index ae36dd4e9d0f42381710f6c9f917edded6a5e358..78147ffb60996b8a8b4f79708501fe24d5a04fcc 100644 (file)
@@ -1052,17 +1052,6 @@ static int gc2235_probe(struct i2c_client *client)
        void *gcpdev;
        int ret;
        unsigned int i;
-       acpi_handle handle;
-       struct acpi_device *adev;
-
-       handle = ACPI_HANDLE(&client->dev);
-       if (!handle || acpi_bus_get_device(handle, &adev)) {
-               dev_err(&client->dev, "Error could not get ACPI device\n");
-               return -ENODEV;
-       }
-       pr_info("%s: ACPI detected it on bus ID=%s, HID=%s\n",
-               __func__, acpi_device_bid(adev), acpi_device_hid(adev));
-       // FIXME: may need to release resources allocated by acpi_bus_get_device()
 
        dev = kzalloc(sizeof(*dev), GFP_KERNEL);
        if (!dev)
index 85c90c6636132e5c5be3d10623ef9ce2ee279de4..809010af78550907cb8ce1f47ee7e316c0bfbee0 100644 (file)
@@ -851,17 +851,6 @@ static int lm3554_probe(struct i2c_client *client)
        struct lm3554 *flash;
        unsigned int i;
        int ret;
-       acpi_handle handle;
-       struct acpi_device *adev;
-
-       handle = ACPI_HANDLE(&client->dev);
-       if (!handle || acpi_bus_get_device(handle, &adev)) {
-               dev_err(&client->dev, "Error could not get ACPI device\n");
-               return -ENODEV;
-       }
-       pr_info("%s: ACPI detected it on bus ID=%s, HID=%s\n",
-               __func__, acpi_device_bid(adev), acpi_device_hid(adev));
-       // FIXME: may need to release resources allocated by acpi_bus_get_device()
 
        flash = kzalloc(sizeof(*flash), GFP_KERNEL);
        if (!flash)
index a76031f9c799e3074b7c398a3b0d39a768faa67b..0d60918a9b1905d20b7fa938655285962811dec0 100644 (file)
@@ -1817,17 +1817,6 @@ static int mt9m114_probe(struct i2c_client *client)
        int ret = 0;
        unsigned int i;
        void *pdata;
-       acpi_handle handle;
-       struct acpi_device *adev;
-
-       handle = ACPI_HANDLE(&client->dev);
-       if (!handle || acpi_bus_get_device(handle, &adev)) {
-               dev_err(&client->dev, "Error could not get ACPI device\n");
-               return -ENODEV;
-       }
-       pr_info("%s: ACPI detected it on bus ID=%s, HID=%s\n",
-               __func__, acpi_device_bid(adev), acpi_device_hid(adev));
-       // FIXME: may need to release resources allocated by acpi_bus_get_device()
 
        /* Setup sensor configuration structure */
        dev = kzalloc(sizeof(*dev), GFP_KERNEL);
index 8f548351142a8da4bd2a132add828bc5e96a3a91..90d125ba080f68296dec92a77ddc34d4c2dbf56f 100644 (file)
@@ -1244,17 +1244,6 @@ static int ov2680_probe(struct i2c_client *client)
        int ret;
        void *pdata;
        unsigned int i;
-       acpi_handle handle;
-       struct acpi_device *adev;
-
-       handle = ACPI_HANDLE(&client->dev);
-       if (!handle || acpi_bus_get_device(handle, &adev)) {
-               dev_err(&client->dev, "Error could not get ACPI device\n");
-               return -ENODEV;
-       }
-       dev_info(&client->dev, "%s: ACPI detected it on bus ID=%s, HID=%s\n",
-               __func__, acpi_device_bid(adev), acpi_device_hid(adev));
-       // FIXME: may need to release resources allocated by acpi_bus_get_device()
 
        dev = kzalloc(sizeof(*dev), GFP_KERNEL);
        if (!dev)
index 9f3e99be810dbc534154052a6629864c36fc3337..eecefcd734d0e342ff70c9c37766b23ec16a1863 100644 (file)
@@ -1215,17 +1215,6 @@ static int ov2722_probe(struct i2c_client *client)
        struct ov2722_device *dev;
        void *ovpdev;
        int ret;
-       acpi_handle handle;
-       struct acpi_device *adev;
-
-       handle = ACPI_HANDLE(&client->dev);
-       if (!handle || acpi_bus_get_device(handle, &adev)) {
-               dev_err(&client->dev, "Error could not get ACPI device\n");
-               return -ENODEV;
-       }
-       pr_info("%s: ACPI detected it on bus ID=%s, HID=%s\n",
-               __func__, acpi_device_bid(adev), acpi_device_hid(adev));
-       // FIXME: may need to release resources allocated by acpi_bus_get_device()
 
        dev = kzalloc(sizeof(*dev), GFP_KERNEL);
        if (!dev)
index da5b1a31e82f592a1020aa33652d0a68801de197..97ab10bc45ca654acb1165ed8319cfdea7e55881 100644 (file)
@@ -1902,17 +1902,6 @@ static int ov5693_probe(struct i2c_client *client)
        int ret = 0;
        void *pdata;
        unsigned int i;
-       acpi_handle handle;
-       struct acpi_device *adev;
-
-       handle = ACPI_HANDLE(&client->dev);
-       if (!handle || acpi_bus_get_device(handle, &adev)) {
-               dev_err(&client->dev, "Error could not get ACPI device\n");
-               return -ENODEV;
-       }
-       pr_info("%s: ACPI detected it on bus ID=%s, HID=%s\n",
-               __func__, acpi_device_bid(adev), acpi_device_hid(adev));
-       // FIXME: may need to release resources allocated by acpi_bus_get_device()
 
        /*
         * Firmware workaround: Some modules use a "secondary default"