Merge "spcom: silent error messages until spss link is up"

This commit is contained in:
Linux Build Service Account 2017-05-25 15:52:00 -07:00 committed by Gerrit - the friendly Code Review server
commit 09173073cf

View file

@ -2154,6 +2154,10 @@ static int spcom_device_open(struct inode *inode, struct file *filp)
struct spcom_channel *ch; struct spcom_channel *ch;
const char *name = file_to_filename(filp); const char *name = file_to_filename(filp);
/* silent error message until spss link is up */
if (!spcom_is_sp_subsystem_link_up())
return -ENODEV;
pr_debug("Open file [%s].\n", name); pr_debug("Open file [%s].\n", name);
if (strcmp(name, DEVICE_NAME) == 0) { if (strcmp(name, DEVICE_NAME) == 0) {