Eina_List *devs, *l;
const char *dev, *ret = NULL, *chosen_dev = NULL;
Eina_Bool found = EINA_FALSE;
- Eina_Bool platform = EINA_FALSE;
Eina_Bool modeset;
int fd;
chosen_dev = dev;
dparent = eeze_udev_syspath_get_parent_filtered(dev, "pci", NULL);
- if (!dparent)
- {
- dparent =
- eeze_udev_syspath_get_parent_filtered(dev, "platform", NULL);
- platform = EINA_TRUE;
- }
-
if (dparent)
{
- if (!platform)
- {
- const char *id;
+ const char *id;
- id = eeze_udev_syspath_get_sysattr(dparent, "boot_vga");
- if (id)
- {
- if (!strcmp(id, "1")) found = EINA_TRUE;
- eina_stringshare_del(id);
- }
+ id = eeze_udev_syspath_get_sysattr(dparent, "boot_vga");
+ if (id)
+ {
+ if (!strcmp(id, "1")) found = EINA_TRUE;
+ eina_stringshare_del(id);
}
- else
- found = EINA_TRUE;
eina_stringshare_del(dparent);
}