Re: [PATCH v2 1/2] Revert OMAP: omap_device: add omap_device_is_valid()

2010-09-15 Thread Paul Walmsley
On Tue, 14 Sep 2010, Kevin Hilman wrote: From: Kevin Hilman khil...@ti.com This reverts commit 0007122ad85cc36b1c18c0b59344093ca210d206. The dereference method of checking for a valid omap_device when wrapping a platform_device is rather unsafe and dangerous. Instead, a better way of

[PATCH v2 1/2] Revert OMAP: omap_device: add omap_device_is_valid()

2010-09-14 Thread Kevin Hilman
From: Kevin Hilman khil...@ti.com This reverts commit 0007122ad85cc36b1c18c0b59344093ca210d206. The dereference method of checking for a valid omap_device when wrapping a platform_device is rather unsafe and dangerous. Instead, a better way of checking for a valid omap-device is to use a common

[PATCH v2 1/2] Revert OMAP: omap_device: add omap_device_is_valid()

2010-09-01 Thread Kevin Hilman
From: Kevin Hilman khil...@ti.com This reverts commit 0007122ad85cc36b1c18c0b59344093ca210d206. The dereference method of checking for a valid omap_device when wrapping a platform_device is rather unsafe and dangerous. Instead, a better way of checking for a valid omap-device is to use a common