driver_core: Avoid NULL dereference when CONFIG_OF_KOBJ=n

Avoid creating a symlink to a nonexistent kobject.

Change-Id: I6468d8f5d6e585d84826762ba6c34ded71b030cd
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
1 file changed