msm: smd_tty: Add check for platform device id

Verify both the platform id (SMD port edge) and
the platform name (SMD port name) match during
driver binding to prevent registering for the
correct SMD port name, but the wrong SMD port
edge.

An SMD Port can be uniquely identified in the
system by its name and edge and both of these
must match for binding to ensure that the
correct port is being opened.  Without this
check, the driver could potentially attach
to the wrong processor resulting in undefined
behavior.

Change-Id: Ic461b6f521ba4e94f41f0b2e608154cbf8eab5c3
Signed-off-by: Eric Holmberg <eholmber@codeaurora.org>
1 file changed