0x0000, /* csi2a, len 0x0170 */
                        0x0170, /* csiphy2, len 0x000c */
                },
-               .syscon_offset = 0xdc,
                .phy_type = ISP_PHY_TYPE_3430,
        },
        {
                        0x0570, /* csiphy1, len 0x000c */
                        0x05c0, /* csi2c, len 0x0040 (2nd area) */
                },
-               .syscon_offset = 0x2f0,
                .phy_type = ISP_PHY_TYPE_3630,
        },
 };
        media_device_unregister(&isp->media_dev);
 }
 
-/*
- * isp_register_subdev - Register a sub-device
- * @isp: OMAP3 ISP device
- * @isp_subdev: platform data related to a sub-device
- *
- * Register an I2C sub-device which has not been registered by other
- * means (such as the Device Tree).
- *
- * Return a pointer to the sub-device if it has been successfully
- * registered, or NULL otherwise.
- */
-static struct v4l2_subdev *
-isp_register_subdev(struct isp_device *isp,
-                   struct isp_platform_subdev *isp_subdev)
-{
-       struct i2c_adapter *adapter;
-       struct v4l2_subdev *sd;
-
-       if (isp_subdev->board_info == NULL)
-               return NULL;
-
-       adapter = i2c_get_adapter(isp_subdev->i2c_adapter_id);
-       if (adapter == NULL) {
-               dev_err(isp->dev,
-                       "%s: Unable to get I2C adapter %d for device %s\n",
-                       __func__, isp_subdev->i2c_adapter_id,
-                       isp_subdev->board_info->type);
-               return NULL;
-       }
-
-       sd = v4l2_i2c_new_subdev_board(&isp->v4l2_dev, adapter,
-                                      isp_subdev->board_info, NULL);
-       if (sd == NULL) {
-               dev_err(isp->dev, "%s: Unable to register subdev %s\n",
-                       __func__, isp_subdev->board_info->type);
-               return NULL;
-       }
-
-       return sd;
-}
-
 static int isp_link_entity(
        struct isp_device *isp, struct media_entity *entity,
        enum isp_interface_type interface)
 
 static int isp_register_entities(struct isp_device *isp)
 {
-       struct isp_platform_data *pdata = isp->pdata;
-       struct isp_platform_subdev *isp_subdev;
        int ret;
 
        isp->media_dev.dev = isp->dev;
        if (ret < 0)
                goto done;
 
-       /*
-        * Device Tree --- the external sub-devices will be registered
-        * later. The same goes for the sub-device node registration.
-        */
-       if (isp->dev->of_node)
-               return 0;
-
-       /* Register external entities */
-       for (isp_subdev = pdata ? pdata->subdevs : NULL;
-            isp_subdev && isp_subdev->board_info; isp_subdev++) {
-               struct v4l2_subdev *sd;
-
-               sd = isp_register_subdev(isp, isp_subdev);
-
-               /*
-                * No bus information --- this is either a flash or a
-                * lens subdev.
-                */
-               if (!sd || !isp_subdev->bus)
-                       continue;
-
-               sd->host_priv = isp_subdev->bus;
-
-               ret = isp_link_entity(isp, &sd->entity,
-                                     isp_subdev->bus->interface);
-               if (ret < 0)
-                       goto done;
-       }
-
-       ret = v4l2_device_register_subdev_nodes(&isp->v4l2_dev);
-
 done:
        if (ret < 0)
                isp_unregister_entities(isp);
                return -ENOMEM;
        }
 
-       if (IS_ENABLED(CONFIG_OF) && pdev->dev.of_node) {
-               ret = of_property_read_u32(pdev->dev.of_node, "ti,phy-type",
-                                          &isp->phy_type);
-               if (ret)
-                       return ret;
+       ret = of_property_read_u32(pdev->dev.of_node, "ti,phy-type",
+                                  &isp->phy_type);
+       if (ret)
+               return ret;
 
-               isp->syscon = syscon_regmap_lookup_by_phandle(pdev->dev.of_node,
-                                                             "syscon");
-               if (IS_ERR(isp->syscon))
-                       return PTR_ERR(isp->syscon);
+       isp->syscon = syscon_regmap_lookup_by_phandle(pdev->dev.of_node,
+                                                     "syscon");
+       if (IS_ERR(isp->syscon))
+               return PTR_ERR(isp->syscon);
 
-               ret = of_property_read_u32_index(pdev->dev.of_node, "syscon", 1,
-                                                &isp->syscon_offset);
-               if (ret)
-                       return ret;
+       ret = of_property_read_u32_index(pdev->dev.of_node, "syscon", 1,
+                                        &isp->syscon_offset);
+       if (ret)
+               return ret;
 
-               ret = isp_of_parse_nodes(&pdev->dev, &isp->notifier);
-               if (ret < 0)
-                       return ret;
-       } else {
-               isp->pdata = pdev->dev.platform_data;
-               isp->syscon = syscon_regmap_lookup_by_pdevname("syscon.0");
-               if (IS_ERR(isp->syscon))
-                       return PTR_ERR(isp->syscon);
-               dev_warn(&pdev->dev,
-                        "Platform data support is deprecated! Please move to DT now!\n");
-       }
+       ret = isp_of_parse_nodes(&pdev->dev, &isp->notifier);
+       if (ret < 0)
+               return ret;
 
        isp->autoidle = autoidle;
 
                goto error_isp;
        }
 
-       if (!IS_ENABLED(CONFIG_OF) || !pdev->dev.of_node) {
-               isp->syscon_offset = isp_res_maps[m].syscon_offset;
-               isp->phy_type = isp_res_maps[m].phy_type;
-       }
-
        for (i = 1; i < OMAP3_ISP_IOMEM_CSI2A_REGS1; i++)
                isp->mmio_base[i] =
                        isp->mmio_base[0] + isp_res_maps[m].offset[i];
        if (ret < 0)
                goto error_modules;
 
-       if (IS_ENABLED(CONFIG_OF) && pdev->dev.of_node) {
-               isp->notifier.bound = isp_subdev_notifier_bound;
-               isp->notifier.complete = isp_subdev_notifier_complete;
+       isp->notifier.bound = isp_subdev_notifier_bound;
+       isp->notifier.complete = isp_subdev_notifier_complete;
 
-               ret = v4l2_async_notifier_register(&isp->v4l2_dev,
-                                                  &isp->notifier);
-               if (ret)
-                       goto error_register_entities;
-       }
+       ret = v4l2_async_notifier_register(&isp->v4l2_dev, &isp->notifier);
+       if (ret)
+               goto error_register_entities;
 
        isp_core_init(isp, 1);
        omap3isp_put(isp);
 
 /*
  * omap3isp.h
  *
- * TI OMAP3 ISP - Platform data
+ * TI OMAP3 ISP - Bus Configuration
  *
  * Copyright (C) 2011 Nokia Corporation
  *
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
  */
 
-#ifndef __MEDIA_OMAP3ISP_H__
-#define __MEDIA_OMAP3ISP_H__
-
-struct i2c_board_info;
-struct isp_device;
+#ifndef __OMAP3ISP_H__
+#define __OMAP3ISP_H__
 
 enum isp_interface_type {
        ISP_INTERFACE_PARALLEL,
        ISP_INTERFACE_CSI2C_PHY1,
 };
 
-enum {
-       ISP_LANE_SHIFT_0 = 0,
-       ISP_LANE_SHIFT_2 = 1,
-       ISP_LANE_SHIFT_4 = 2,
-       ISP_LANE_SHIFT_6 = 3,
-};
-
 /**
  * struct isp_parallel_cfg - Parallel interface configuration
  * @data_lane_shift: Data lane shifter
- *             ISP_LANE_SHIFT_0 - CAMEXT[13:0] -> CAM[13:0]
- *             ISP_LANE_SHIFT_2 - CAMEXT[13:2] -> CAM[11:0]
- *             ISP_LANE_SHIFT_4 - CAMEXT[13:4] -> CAM[9:0]
- *             ISP_LANE_SHIFT_6 - CAMEXT[13:6] -> CAM[7:0]
+ *             0 - CAMEXT[13:0] -> CAM[13:0]
+ *             1 - CAMEXT[13:2] -> CAM[11:0]
+ *             2 - CAMEXT[13:4] -> CAM[9:0]
+ *             3 - CAMEXT[13:6] -> CAM[7:0]
  * @clk_pol: Pixel clock polarity
  *             0 - Sample on rising edge, 1 - Sample on falling edge
  * @hs_pol: Horizontal synchronization polarity
        } bus; /* gcc < 4.6.0 chokes on anonymous union initializers */
 };
 
-struct isp_platform_subdev {
-       struct i2c_board_info *board_info;
-       int i2c_adapter_id;
-       struct isp_bus_cfg *bus;
-};
-
-struct isp_platform_data {
-       struct isp_platform_subdev *subdevs;
-       void (*set_constraints)(struct isp_device *isp, bool enable);
-};
-
-#endif /* __MEDIA_OMAP3ISP_H__ */
+#endif /* __OMAP3ISP_H__ */