/* execute the _STA method. note that present does not imply that we are docked.  */
static int dock_present(struct dock_station *ds)
/* execute the _STA method. note that present does not imply that we are docked.  */
static int dock_present(struct dock_station *ds)
{
	unsigned long long sta;
	acpi_status status;
	if (ds) {
		status = acpi_evaluate_integer(ds->handle, "_STA", NULL, &sta);
		if (ACPI_SUCCESS(status) && sta)
			return 1;
	}
	return 0;
}